We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d8aade commit 7962268Copy full SHA for 7962268
qtorch/optim/optim_low.py
@@ -94,7 +94,7 @@ def step(self, closure=None):
94
# quantize momentum
95
if not self.momentum_quant is None:
96
for group in self.param_groups:
97
- if group['momentum'] == 0: continue
+ if isinstance(self.optim, SGD) and group['momentum'] == 0: continue
98
for p in group['params']:
99
param_state = self.optim.state[p]
100
for key in self.momentum_keys:
0 commit comments