From 14a3da36432a89be094757677e6e7dc093fdf359 Mon Sep 17 00:00:00 2001
From: Chong Zhang <iriszhangchong@gmail.com>
Date: 星期五, 05 五月 2023 13:01:25 +0800
Subject: [PATCH] Update postprocess_utils.py
---
funasr/modules/nets_utils.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/funasr/modules/nets_utils.py b/funasr/modules/nets_utils.py
index 5d4fe1c..10df124 100644
--- a/funasr/modules/nets_utils.py
+++ b/funasr/modules/nets_utils.py
@@ -595,7 +595,7 @@
mask = torch.zeros(size, size, device=device, dtype=torch.bool)
for i in range(size):
- if left_chunk_size <= 0:
+ if left_chunk_size < 0:
start = 0
else:
start = max((i // chunk_size - left_chunk_size) * chunk_size, 0)
--
Gitblit v1.9.1