From 7458e39ff0756d0bae38b139e0e534e61e1fa0cf Mon Sep 17 00:00:00 2001
From: shixian.shi <shixian.shi@alibaba-inc.com>
Date: 星期三, 17 一月 2024 19:21:08 +0800
Subject: [PATCH] bug fix
---
runtime/python/onnxruntime/funasr_onnx/punc_bin.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/runtime/python/onnxruntime/funasr_onnx/punc_bin.py b/runtime/python/onnxruntime/funasr_onnx/punc_bin.py
index 6e289f6..86a276f 100644
--- a/runtime/python/onnxruntime/funasr_onnx/punc_bin.py
+++ b/runtime/python/onnxruntime/funasr_onnx/punc_bin.py
@@ -276,7 +276,7 @@
param_dict[cache_key] = cache_out
return sentence_out, sentence_punc_list_out, cache_out
- def vad_mask(self, size, vad_pos, dtype=np.bool):
+ def vad_mask(self, size, vad_pos, dtype=bool):
"""Create mask for decoder self-attention.
:param int size: size of mask
--
Gitblit v1.9.1