from local

This commit is contained in:
dohe0342 2023-04-12 14:43:16 +09:00
parent 57b0d5b2e2
commit b7e95dc5e1
3 changed files with 1 additions and 0 deletions

Binary file not shown.

View File

@ -495,6 +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)
padding_mask = torch.cat([prompt_padding_mask, padding_mask], dim=1)
print(padding_mask.size())
features = self.layer_norm(features)