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