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
4baaa7f772
commit
04c11b8fdb
Binary file not shown.
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user