Skip to content

Commit 2fe259f

Browse files
committed
update: remove unreachable line
1 parent 7800761 commit 2fe259f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pytorch_optimizer/optimizer/dadapt.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -512,10 +512,7 @@ def step(self, closure: CLOSURE = None) -> LOSS:
512512
d = max(d, min(d_hat.item(), d * group['growth_rate']))
513513

514514
for group in self.param_groups:
515-
if 'step' in group:
516-
group['step'] += 1
517-
else:
518-
group['step'] = 1
515+
group['step'] += 1
519516

520517
group['numerator_weighted'] = numerator_weighted
521518
group['d'] = d

0 commit comments

Comments
 (0)