from local

This commit is contained in:
dohe0342 2023-04-11 16:50:13 +09:00
parent 5fc27b4656
commit d05ffc1294
3 changed files with 1 additions and 0 deletions

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)
features = self.layer_norm(features)