mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-09 09:04:19 +00:00
Change power from 0.66 to 1.0, like natural gradient.
This commit is contained in:
parent
89fad8cc5a
commit
eed864a3db
@ -639,7 +639,7 @@ class Cain(Optimizer):
|
|||||||
|
|
||||||
|
|
||||||
this_delta_ref = grad / denom
|
this_delta_ref = grad / denom
|
||||||
this_delta = grad / (denom ** 1.5)
|
this_delta = grad / (exp_avg_sq + eps)
|
||||||
|
|
||||||
renorm_scale = ((this_delta_ref**2).mean() / ((this_delta**2).mean() + eps)) ** 0.5
|
renorm_scale = ((this_delta_ref**2).mean() / ((this_delta**2).mean() + eps)) ** 0.5
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user