from local

This commit is contained in:
dohe0342 2023-04-11 13:46:49 +09:00
parent f7e3476741
commit 9b46b760b7
2 changed files with 2 additions and 0 deletions

View File

@ -464,6 +464,8 @@ class Data2VecAudioModel(BaseFairseqModel):
features = self.feature_extractor(features)
features = features.transpose(1, 2)
if prompt is not None:
features = torch.cat([features, prompt])
features = self.layer_norm(features)