mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
Fix ' was a deprecated alias for the builtin ' issue (#1100)
This commit is contained in:
parent
094af1dfb4
commit
29e0359170
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user