From 0efc87352ce7d3903dbdedbfa5d01ca5e1cb19e7 Mon Sep 17 00:00:00 2001
From: Shi Xian <40013335+R1ckShi@users.noreply.github.com>
Date: 星期四, 05 十二月 2024 15:15:38 +0800
Subject: [PATCH] Merge pull request #2267 from modelscope/dev_sx2

---
 funasr/models/sond/label_aggregation.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/funasr/models/sond/label_aggregation.py b/funasr/models/sond/label_aggregation.py
index 7ec06aa..dddc4c4 100644
--- a/funasr/models/sond/label_aggregation.py
+++ b/funasr/models/sond/label_aggregation.py
@@ -90,9 +90,7 @@
         self.hop_length = hop_length
 
     def extra_repr(self):
-        return (
-            f"hop_length={self.hop_length}, "
-        )
+        return f"hop_length={self.hop_length}, "
 
     def forward(
         self, input: torch.Tensor, ilens: torch.Tensor = None
@@ -107,7 +105,9 @@
 
         """
 
-        output = F.max_pool1d(input.transpose(1, 2), self.hop_length, self.hop_length).transpose(1, 2)
+        output = F.max_pool1d(input.transpose(1, 2), self.hop_length, self.hop_length).transpose(
+            1, 2
+        )
         olens = ilens // self.hop_length
 
-        return output.to(input.dtype), olens
\ No newline at end of file
+        return output.to(input.dtype), olens

--
Gitblit v1.9.1