mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Warm up lr more slowly
This commit is contained in:
parent
76e6726178
commit
e4a774cb98
@ -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 0.5 + 0.5 * (self.batch / self.warmup_batches)
|
else 0.1 + 0.9 * (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