From 1b8419d83267954b861a86f5ba1ccc6f60fe9098 Mon Sep 17 00:00:00 2001
From: weiliang <weiliang.chong@day-care.cn>
Date: 星期五, 24 三月 2023 09:25:40 +0800
Subject: [PATCH] add audio_data to buf when speeking is False for non-stream inferring
---
funasr/layers/label_aggregation.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/funasr/layers/label_aggregation.py b/funasr/layers/label_aggregation.py
index 075e19d..29a08a9 100644
--- a/funasr/layers/label_aggregation.py
+++ b/funasr/layers/label_aggregation.py
@@ -79,4 +79,4 @@
else:
olens = None
- return output, olens
+ return output.to(input.dtype), olens
--
Gitblit v1.9.1