We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfb96f3 commit 19c2136Copy full SHA for 19c2136
pytorch_optimizer/optimizer/ralamb.py
@@ -173,7 +173,7 @@ def step(self, closure: CLOSURE = None) -> LOSS:
173
174
buffered[2] = step_size
175
176
- if group['weight_decay'] != 0:
+ if group['weight_decay'] > 0.0:
177
p_fp32.add_(p_fp32, alpha=-group['weight_decay'] * group['lr'])
178
179
radam_step = p_fp32.clone()
0 commit comments