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
a9008aa082
commit
af9c0098e0
Binary file not shown.
@ -495,10 +495,7 @@ class Data2VecAudioModel(BaseFairseqModel):
|
||||
features = torch.cat([prompt, features], dim=1)
|
||||
prompt_padding_mask = torch.zeros(prompt.size()[0], prompt.size()[1]).type(torch.BoolTensor).to(features.device)
|
||||
try: padding_mask = torch.cat([prompt_padding_mask, padding_mask], dim=1)
|
||||
except:
|
||||
print(padding_mask)
|
||||
print(prompt_padding_mask.size())
|
||||
print(padding_mask.size())
|
||||
except: padding_mask = None
|
||||
|
||||
features = self.layer_norm(features)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user