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

This commit is contained in:
electroniccc 2023-11-20 09:45:15 +08:00 committed by GitHub
parent 094af1dfb4
commit 29e0359170
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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