mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
sdpa bugfix
This commit is contained in:
parent
b9bc982e4f
commit
609c0e7e0d
@ -42,7 +42,7 @@ def sense_voice_encode_forward(
|
||||
olens = None
|
||||
|
||||
if use_padmask and olens is not None:
|
||||
padding_mask = (~make_pad_mask(olens)[:, None, :]).to(torch.bool).to(x.device)
|
||||
padding_mask = (~make_pad_mask(olens)[:, :, None]).to(torch.bool).to(x.device)
|
||||
else:
|
||||
padding_mask = None
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user