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 7b59b46 commit c8fdf41Copy full SHA for c8fdf41
pytorch_optimizer/optimizer/sm3.py
@@ -50,7 +50,8 @@ def reset(self):
50
for p in group['params']:
51
state = self.state[p]
52
53
- state['momentum_buffer'] = 0.0
+ state['step'] = 0
54
+ state['momentum_buffer'] = torch.zeros_like(p)
55
56
@staticmethod
57
def max_reduce_except_dim(x: torch.Tensor, dim: int) -> torch.Tensor:
0 commit comments