Skip to content

Commit 5da4074

Browse files
committed
style: format
1 parent a0af041 commit 5da4074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_optimizer/optimizer/shampoo_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def __init__(self, var: torch.Tensor, block_size: int, pre_conditioner_type: int
146146
self.num_splits: int = len(split_sizes)
147147
self.pre_conditioner_shapes: List[List[int]] = []
148148
for t in itertools.product(*split_sizes):
149-
if not(pre_conditioner_type == PreConditionerType.ALL or self.num_splits <= 1):
149+
if not (pre_conditioner_type == PreConditionerType.ALL or self.num_splits <= 1):
150150
t = t[:-1]
151151
self.pre_conditioner_shapes.extend([[d, d] for d in t])
152152

0 commit comments

Comments
 (0)