12 lines
194 B
Python
12 lines
194 B
Python
import abc
|
|
|
|
|
|
class Preprocessor(abc.ABC):
|
|
@staticmethod
|
|
@abc.abstractmethod
|
|
def preprocess(batch):
|
|
pass
|
|
|
|
def __call__(self, batch):
|
|
return self.preprocess(batch)
|