mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
67ebc38e7d
commit
6476c0715b
Binary file not shown.
@ -496,7 +496,7 @@ class Data2VecAudioModel(BaseFairseqModel):
|
||||
print(features.size())
|
||||
features = torch.cat([prompt, features], dim=1)
|
||||
print(features.size())
|
||||
prompt_padding_mask = torch.zeros(prompt.size()).type(torch.BoolTensor).to(features.device)
|
||||
prompt_padding_mask = torch.zeros(prompt.size()[0], prompt.size()[1]).type(torch.BoolTensor).to(features.device)
|
||||
print(prompt_padding_mask.size())
|
||||
padding_mask = torch.cat([prompt_padding_mask, padding_mask])
|
||||
print(padding_mask.size())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user