mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-18 13:34:20 +00:00
Bug fix to typo in optim.py
This commit is contained in:
parent
ca7cffcb42
commit
41b0e582df
@ -358,7 +358,7 @@ class NeutralGradient(Optimizer):
|
||||
this_beta3 = max(beta3, 1 - 1. / grad_num_steps_needed)
|
||||
grad_cov.mul_(this_beta3).add_(self._get_cov(grad, dim),
|
||||
alpha=(1.0-this_beta3))
|
||||
if step % estimate_period == 0 or (step < 100 and step % 10 == 0)
|
||||
if step % estimate_period == 0 or (step < 100 and step % 10 == 0):
|
||||
# Estimate the parameter covariance on this dimension,
|
||||
# treating the other dimensions of the parameter as we would
|
||||
# frames. Smooth with the diagonal because there are not
|
||||
|
Loading…
x
Reference in New Issue
Block a user