Explorar o código

Fix ' was a deprecated alias for the builtin ' issue (#1100)

electroniccc %!s(int64=2) %!d(string=hai) anos
pai
achega
29e0359170
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      runtime/python/onnxruntime/funasr_onnx/punc_bin.py

+ 1 - 1
runtime/python/onnxruntime/funasr_onnx/punc_bin.py

@@ -276,7 +276,7 @@ class CT_Transformer_VadRealtime(CT_Transformer):
         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