diff --git a/egs/librispeech/SSL/zipformer/hubert_ce.py b/egs/librispeech/SSL/zipformer/hubert_ce.py index ba4e1cdddd..1ac368a1d0 100644 --- a/egs/librispeech/SSL/zipformer/hubert_ce.py +++ b/egs/librispeech/SSL/zipformer/hubert_ce.py @@ -429,7 +429,7 @@ def forward( # 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)) x = x.transpose(0, 1) if features_only: