mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Fix w.r.t. uneven upsampling
This commit is contained in:
parent
10a3061025
commit
1005ff35ba
@ -456,6 +456,8 @@ class DownsampledConformerEncoder(nn.Module):
|
||||
src, src_key_padding_mask=mask, warmup=warmup
|
||||
)
|
||||
src = self.upsample(src)
|
||||
# remove any extra frames that are not a multiple of downsample_factor
|
||||
src = src[:src_orig.shape[0]]
|
||||
|
||||
return src
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user