mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
modify unit test for speech_diarization_sond-en-us-callhome-8k-n16k4-pytorch
This commit is contained in:
parent
c1f5bc2e4f
commit
773ab31780
@ -272,7 +272,7 @@ class SelfAttentionEncoder(AbsEncoder):
|
||||
position embedded tensor and mask
|
||||
"""
|
||||
masks = (~make_pad_mask(ilens)[:, None, :]).to(xs_pad.device)
|
||||
xs_pad *= self.output_size()**0.5
|
||||
xs_pad = xs_pad * self.output_size()**0.5
|
||||
if self.embed is None:
|
||||
xs_pad = xs_pad
|
||||
elif (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user