from local

This commit is contained in:
dohe0342 2023-04-12 14:46:17 +09:00
parent fd9690653e
commit a9008aa082
2 changed files with 1 additions and 0 deletions

View File

@ -496,6 +496,7 @@ class Data2VecAudioModel(BaseFairseqModel):
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())