From 1eacb8ae811a7e68c296523e6a8b4e72eb024aa2 Mon Sep 17 00:00:00 2001
From: hnluo <haoneng.lhn@alibaba-inc.com>
Date: 星期五, 10 三月 2023 20:48:41 +0800
Subject: [PATCH] Update iterable_dataset.py
---
funasr/punctuation/abs_model.py | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/funasr/punctuation/abs_model.py b/funasr/punctuation/abs_model.py
index 3e0b6ce..404d5e8 100644
--- a/funasr/punctuation/abs_model.py
+++ b/funasr/punctuation/abs_model.py
@@ -23,7 +23,9 @@
"""
@abstractmethod
- def forward(
- self, input: torch.Tensor, hidden: torch.Tensor
- ) -> Tuple[torch.Tensor, torch.Tensor]:
+ def forward(self, input: torch.Tensor, hidden: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:
+ raise NotImplementedError
+
+ @abstractmethod
+ def with_vad(self) -> bool:
raise NotImplementedError
--
Gitblit v1.9.1