mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Restore old warmup schedule
This commit is contained in:
parent
d2d0ce0335
commit
671e9ee5bd
@ -882,7 +882,7 @@ class Eden(LRScheduler):
|
|||||||
warmup_factor = (
|
warmup_factor = (
|
||||||
1.0
|
1.0
|
||||||
if self.batch >= self.warmup_batches
|
if self.batch >= self.warmup_batches
|
||||||
else (self.batch / self.warmup_batches)
|
else 0.5 + 0.5 * (self.batch / self.warmup_batches)
|
||||||
)
|
)
|
||||||
|
|
||||||
return [x * factor * warmup_factor for x in self.base_lrs]
|
return [x * factor * warmup_factor for x in self.base_lrs]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user