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
9778159c92
commit
90e1d2299e
Binary file not shown.
@ -492,6 +492,7 @@ class Data2VecAudioModel(BaseFairseqModel):
|
||||
if prompt is not None:
|
||||
print(features.size())
|
||||
print(padding_mask.size())
|
||||
exit()
|
||||
prompt = prompt.expand((features.size()[0], prompt.size()[0], prompt.size()[1]))
|
||||
features = torch.cat([prompt, features], dim=1)
|
||||
prompt_padding_mask = torch.zeros(prompt.size()[0], prompt.size()[1]).type(torch.BoolTensor).to(features.device)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user