Merge b4c9e37c8e7e15ef14546b3f38debb8b3dfa6933 into 0904e490c5fb424dc5cb4d14ae468e4d32a07dc4

This commit is contained in:
jianyou 2025-11-28 16:35:13 -05:00 committed by GitHub
commit 1b17e38928
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: