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
3b1ca50e6f
commit
895bd08ddc
Binary file not shown.
@ -492,6 +492,8 @@ class Data2VecAudioModel(BaseFairseqModel):
|
||||
if prompt is not None:
|
||||
#features = torch.cat([features, prompt])
|
||||
features = torch.cat([prompt, features])
|
||||
prompt_padding_mask = torch.zeros(promt.size()).type(torch.BoolTensor).to(features.device)
|
||||
padding_mask
|
||||
|
||||
features = self.layer_norm(features)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user