aboutsummaryrefslogtreecommitdiffstats
path: root/look2hear/utils/inversible_interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'look2hear/utils/inversible_interface.py')
-rw-r--r--look2hear/utils/inversible_interface.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/look2hear/utils/inversible_interface.py b/look2hear/utils/inversible_interface.py
new file mode 100644
index 0000000..919107e
--- /dev/null
+++ b/look2hear/utils/inversible_interface.py
@@ -0,0 +1,13 @@
+from abc import ABC, abstractmethod
+from typing import Tuple
+
+import torch
+
+
+class InversibleInterface(ABC):
+ @abstractmethod
+ def inverse(
+ self, input: torch.Tensor, input_lengths: torch.Tensor = None
+ ) -> Tuple[torch.Tensor, torch.Tensor]:
+ # return output, output_lengths
+ raise NotImplementedError \ No newline at end of file