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
4250de81a4
commit
9bba4015cb
Binary file not shown.
@ -253,7 +253,8 @@ class Data2VecAudioModel(BaseFairseqModel):
|
||||
mask_dropout=self.cfg.mask_dropout,
|
||||
)
|
||||
mask_indices = torch.from_numpy(mask_indices).to(x.device)
|
||||
x = index_put(x, mask_indices, self.mask_emb)
|
||||
#x = index_put(x, mask_indices, self.mask_emb)
|
||||
x = index_put(x, mask_indices, 0)
|
||||
else:
|
||||
mask_indices = None
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user