Skip to content

Commit d91ae5d

Browse files
committed
update: SFWrapper
1 parent 2fdaff2 commit d91ae5d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pytorch_optimizer/optimizer/schedulefree.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,9 +594,6 @@ def step(self, closure: CLOSURE = None) -> LOSS:
594594

595595
state = self.state[p]
596596

597-
if 'z' not in state:
598-
state['z'] = torch.clone(p)
599-
600597
z = state['z']
601598

602599
self.apply_weight_decay(

0 commit comments

Comments
 (0)