From c792311d94806cf7db5a3d41382dd181be7a28d6 Mon Sep 17 00:00:00 2001 From: season <season4675@gmail.com> Date: 星期五, 30 六月 2023 11:49:55 +0800 Subject: [PATCH] [funasr-runtime-deploy 0.0.3] add funasr-runtime-deploy.sh for one-step-deployment (#690) --- 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