fix src_key_padding_mask in DownsampledZipformerEncoder (#768)

This commit is contained in:
Zengwei Yao 2022-12-17 22:03:13 +08:00 committed by GitHub
parent 6d659f423d
commit fbc1d3b194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -741,7 +741,7 @@ class DownsampledZipformerEncoder(nn.Module):
src,
feature_mask=feature_mask,
mask=mask,
src_key_padding_mask=mask,
src_key_padding_mask=src_key_padding_mask,
)
src = self.upsample(src)
# remove any extra frames that are not a multiple of downsample_factor