2022-03-26 19:38:34 +01:00

13 lines
195 B
Python

import abc
class Preprocessor(abc.ABC):
@staticmethod
@abc.abstractmethod
def preprocess(batch):
pass
def __call__(self, batch):
return self.preprocess(batch)