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