Skip to content

Commit 42edb7b

Browse files
committed
fix: bias_correction
1 parent b58a01e commit 42edb7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_optimizer/optimizer/dadapt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def step(self, closure: CLOSURE = None) -> LOSS:
327327

328328
# it's not Adam Debias
329329
d_lr: float = self.apply_adam_debias(
330-
group['bias_correction'], step_size=d * lr, bias_correction1=bias_correction
330+
not group['bias_correction'], step_size=d * lr, bias_correction1=bias_correction
331331
)
332332

333333
sk_l1 = torch.tensor([0.0], device=device)

0 commit comments

Comments
 (0)