Files
tensordex/modeling_utils/model_wrapper.py
T

9 lines
262 B
Python

from collections import Callable
class ModelWrapper(object):
def __init__(self, model_func:Callable, model_preprocessor:Callable, name:str):
self.model_func = model_func
self.model_preprocessor = model_preprocessor
self.name = name