from local

This commit is contained in:
dohe0342 2023-04-26 12:24:15 +09:00
parent 4baaa7f772
commit 04c11b8fdb
2 changed files with 1 additions and 3 deletions

View File

@ -500,9 +500,7 @@ class Data2VecAudioModel(BaseFairseqModel):
except: except:
length += features.size()[1] length += features.size()[1]
conv_feat_all = torch.cat([conv_feat_all, features[i]]) conv_feat_all = torch.cat([conv_feat_all, features[i]])
print(length)
print(conv_feat_all.size())
exit()
prompt = prompt.expand((features.size()[0], prompt.size()[0], prompt.size()[1])) prompt = prompt.expand((features.size()[0], prompt.size()[0], prompt.size()[1]))
features = torch.cat([prompt, features], dim=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) prompt_padding_mask = torch.zeros(prompt.size()[0], prompt.size()[1]).type(torch.BoolTensor).to(features.device)