torchaudio testing
This commit is contained in:
@ -1,6 +1,19 @@
|
||||
from abc import ABC
|
||||
from torchvision.transforms import ToTensor as TorchVisionToTensor
|
||||
|
||||
|
||||
class _BaseTransformation(ABC):
|
||||
|
||||
def __init__(self, *args):
|
||||
pass
|
||||
|
||||
def __repr__(self):
|
||||
return f'{self.__class__.__name__}({self.__dict__})'
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
class ToTensor(TorchVisionToTensor):
|
||||
|
||||
def __call__(self, pic):
|
||||
|
Reference in New Issue
Block a user