Skip to content

Commit e3d8962

Browse files
committed
update: reset
1 parent ac1b1c5 commit e3d8962

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytorch_optimizer/nero.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def reset(self):
4646
for group in self.param_groups:
4747
for p in group['params']:
4848
if group['constraints'] and p.dim() > 1:
49-
p -= neuron_mean(p)
50-
p /= neuron_norm(p)
49+
p.sub_(neuron_mean(p))
50+
p.div_(neuron_norm(p))
5151

5252
state = self.state[p]
5353

0 commit comments

Comments
 (0)