From f43da18b5e097515c12438c70fc7918c29e5d0c8 Mon Sep 17 00:00:00 2001
From: lingji-yidong <75744976+lingji-yidong@users.noreply.github.com>
Date: 星期一, 19 八月 2024 13:36:59 +0800
Subject: [PATCH] fix start timestamp in sentence_info (#2024)

---
 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