mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
Merge b4c9e37c8e7e15ef14546b3f38debb8b3dfa6933 into 34fc1fdf0d8ff520e2bb18267d046ca207c78ef9
This commit is contained in:
commit
2642b187b2
@ -429,7 +429,7 @@ class HubertModel(nn.Module):
|
|||||||
# padding_mask: (B, T), bool
|
# padding_mask: (B, T), bool
|
||||||
# mask_indices: (B, T), bool
|
# mask_indices: (B, T), bool
|
||||||
x = x.transpose(0, 1)
|
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)
|
x = x.transpose(0, 1)
|
||||||
|
|
||||||
if features_only:
|
if features_only:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user