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.
2 parents da65344 + b0124e0 commit 523f140Copy full SHA for 523f140
pytorch_optimizer/optimizer/srmm.py
@@ -53,7 +53,7 @@ def step(self, closure: CLOSURE = None) -> LOSS:
53
group['step'] = 1
54
55
w_t: float = (
56
- (group['step'] + 1) % (group['memory_length'] if group['memory_length'] is not None else 1)
+ (group['step'] % (group['memory_length'] if group['memory_length'] is not None else 1)) + 1
57
) ** -group['beta']
58
59
for p in group['params']:
0 commit comments