Skip to content

Commit 0b86b5b

Browse files
committed
style: ** operator
1 parent 71da75a commit 0b86b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_optimizer/optimizer/adashift.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def step(self, closure: CLOSURE = None) -> LOSS:
6969

7070
beta1, beta2 = group['betas']
7171

72-
exp_weight_sum: int = sum(beta1**i for i in range(group['keep_num']))
72+
exp_weight_sum: int = sum(beta1 ** i for i in range(group['keep_num'])) # fmt: skip
7373
first_grad_weight: float = beta1 ** (group['keep_num'] - 1) / exp_weight_sum
7474
last_grad_weight: float = 1.0 / exp_weight_sum
7575

0 commit comments

Comments
 (0)