mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
Change power of lr-schedule from -0.5 to -0.333
This commit is contained in:
parent
953aecf5e3
commit
8a8134b9e5
@ -391,7 +391,8 @@ class Noam(object):
|
||||
return (
|
||||
self.factor
|
||||
* self.model_size ** (-0.5)
|
||||
* min(step ** (-0.5), step * self.warmup ** (-1.5))
|
||||
* self.warmup ** (-0.5 - -0.333)
|
||||
* min(step ** (-0.333), step * self.warmup ** (-1.333))
|
||||
)
|
||||
|
||||
def zero_grad(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user