Make layer-skip-dropout-prob decrease to 0.0

This commit is contained in:
Daniel Povey 2023-02-20 16:33:04 +08:00
parent e0b8a0cfd0
commit 90180ce5e7

View File

@ -142,7 +142,8 @@ class Zipformer(EncoderInterface):
# encoder stacks; when it's dropped out like this, it means we are forced
# to take the "direct" (non-bypass) path.
self.layer_skip_dropout_prob = ScheduledFloat((0.0, 0.5),
(warmup_batches, 0.025))
(warmup_batches, 0.025),
(20000.0, 0.0))
def _to_tuple(x):
""" Converts a single int or a 1-tuple of an int to a tuple with the same length