mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-09 05:55:26 +00:00
Merge b4c9e37c8e7e15ef14546b3f38debb8b3dfa6933 into 0904e490c5fb424dc5cb4d14ae468e4d32a07dc4
This commit is contained in:
commit
1b17e38928
@ -429,7 +429,7 @@ class HubertModel(nn.Module):
|
||||
# padding_mask: (B, T), bool
|
||||
# mask_indices: (B, T), bool
|
||||
x = x.transpose(0, 1)
|
||||
x, x_lens = self.encoder(x, (~padding_mask).sum(dim=-1))
|
||||
x, x_lens = self.encoder(x, (~padding_mask).sum(dim=-1) if padding_mask is not None else None)
|
||||
x = x.transpose(0, 1)
|
||||
|
||||
if features_only:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user