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
b7e95dc5e1
commit
fd9690653e
Binary file not shown.
@ -494,7 +494,9 @@ class Data2VecAudioModel(BaseFairseqModel):
|
||||
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)
|
||||
padding_mask = torch.cat([prompt_padding_mask, padding_mask], dim=1)
|
||||
try: padding_mask = torch.cat([prompt_padding_mask, padding_mask], dim=1)
|
||||
except:
|
||||
print(prompt_padding_mask.size())
|
||||
print(padding_mask.size())
|
||||
|
||||
features = self.layer_norm(features)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user