From d80ac2fd2df4e7fb8a28acfa512bb11472b5cc99 Mon Sep 17 00:00:00 2001
From: liugz18 <57401541+liugz18@users.noreply.github.com>
Date: 星期四, 18 七月 2024 21:34:55 +0800
Subject: [PATCH] Rename 'res' in line 514 to avoid with naming conflict with line 365

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