Matthias Bisping d11333981f applied black
2022-03-27 01:21:12 +01:00

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)