mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Avoid falling off the loop for weird inputs
This commit is contained in:
parent
05689f6354
commit
9a7979d7b8
@ -155,7 +155,7 @@ class Zipformer(EncoderInterface):
|
||||
else:
|
||||
# TEMP
|
||||
for j in range(i-2, -1, -1):
|
||||
if z[j] <= z[i]:
|
||||
if z[j] <= z[i] or j == 0:
|
||||
# TEMP logging statement.
|
||||
logging.info(f"At encoder stack {i}, which has downsampling_factor={z[i]}, we will "
|
||||
f"combine the outputs of layers {j} and {i-1}, with downsampling_factors={z[j]} and {z[i-1]}.")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user