Source code for espnet.transform.transform_interface

# TODO(karita): add this to all the transform impl.
[docs]class TransformInterface: """Transform Interface""" def __call__(self, x): raise NotImplementedError("__call__ method is not implemented")
[docs] @classmethod def add_arguments(cls, parser): return parser
def __repr__(self): return self.__class__.__name__ + "()"
[docs]class Identity(TransformInterface): """Identity Function""" def __call__(self, x): return x