From 2a38e81a135326d0369a089e82e5cf998be4dac7 Mon Sep 17 00:00:00 2001
From: Lizerui9926 <110582652+Lizerui9926@users.noreply.github.com>
Date: 星期四, 25 五月 2023 10:39:38 +0800
Subject: [PATCH] update modelscope pipeline benchmark (#550)

---
 funasr/layers/inversible_interface.py |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/funasr/layers/inversible_interface.py b/funasr/layers/inversible_interface.py
new file mode 100644
index 0000000..657ec68
--- /dev/null
+++ b/funasr/layers/inversible_interface.py
@@ -0,0 +1,14 @@
+from abc import ABC
+from abc import 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

--
Gitblit v1.9.1