mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
fix src_key_padding_mask in DownsampledZipformerEncoder (#768)
This commit is contained in:
parent
6d659f423d
commit
fbc1d3b194
@ -741,7 +741,7 @@ class DownsampledZipformerEncoder(nn.Module):
|
|||||||
src,
|
src,
|
||||||
feature_mask=feature_mask,
|
feature_mask=feature_mask,
|
||||||
mask=mask,
|
mask=mask,
|
||||||
src_key_padding_mask=mask,
|
src_key_padding_mask=src_key_padding_mask,
|
||||||
)
|
)
|
||||||
src = self.upsample(src)
|
src = self.upsample(src)
|
||||||
# remove any extra frames that are not a multiple of downsample_factor
|
# remove any extra frames that are not a multiple of downsample_factor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user