From 88b464edb94531ba98744a5338965af539ab18ec Mon Sep 17 00:00:00 2001
From: slin000111 <127832064+slin000111@users.noreply.github.com>
Date: 星期六, 20 九月 2025 22:40:30 +0800
Subject: [PATCH] Fix prefix concatenation in timestamp post-processing for sensevoice (#2670)

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