From 2e36e738ca39afc8d02f3d11013bd12f937cc874 Mon Sep 17 00:00:00 2001 From: zhaomingwork <61895407+zhaomingwork@users.noreply.github.com> Date: 星期三, 08 十一月 2023 09:22:06 +0800 Subject: [PATCH] fix bug for h5 hotwords (#1067) --- 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