Skip to content

Commit f7fa2c8

Browse files
committed
style: format
1 parent 11286cd commit f7fa2c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_optimizer/optimizer/novograd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def step(self, closure: CLOSURE = None) -> LOSS:
9999
raise NoSparseGradientError(self.__str__)
100100

101101
state = self.state[p]
102-
g_2 = grad**2
102+
g_2 = grad ** 2 # fmt: skip
103103

104104
if len(state) == 0:
105105
state['moments'] = grad.div(g_2.sqrt() + group['eps']) + weight_decay * p

0 commit comments

Comments
 (0)