mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Fix bug RE seq lengths
This commit is contained in:
parent
d7d5188bd9
commit
de9a6ebd6c
@ -228,7 +228,8 @@ class Zipformer(EncoderInterface):
|
||||
|
||||
x = self.downsample_output(x)
|
||||
# class Downsample has this rounding behavior..
|
||||
lengths = (x_lens + 1) // 2
|
||||
assert self.output_downsampling_factor == 2
|
||||
lengths = (lengths + 1) // 2
|
||||
|
||||
|
||||
x = x.permute(1, 0, 2) # (T, N, C) ->(N, T, C)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user