From 026b8e3fdc981ceeac18257319fb4b1b7db2f8b5 Mon Sep 17 00:00:00 2001
From: shixian <shixian@U-09RYG5WD-2244.local>
Date: 星期四, 05 十二月 2024 19:29:19 +0800
Subject: [PATCH] update sensevoice small with timestamp

---
 funasr/models/mossformer/mossformer_decoder.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/funasr/models/mossformer/mossformer_decoder.py b/funasr/models/mossformer/mossformer_decoder.py
index e0189f7..56ad2ec 100644
--- a/funasr/models/mossformer/mossformer_decoder.py
+++ b/funasr/models/mossformer/mossformer_decoder.py
@@ -40,9 +40,7 @@
         """
 
         if x.dim() not in [2, 3]:
-            raise RuntimeError(
-                "{} accept 3/4D tensor as input".format(self.__name__)
-            )
+            raise RuntimeError("{} accept 3/4D tensor as input".format(self.__name__))
         x = super().forward(x if x.dim() == 3 else torch.unsqueeze(x, 1))
 
         if torch.squeeze(x).dim() == 1:
@@ -50,4 +48,3 @@
         else:
             x = torch.squeeze(x)
         return x
-

--
Gitblit v1.9.1