Skip to content

Commit 94e599d

Browse files
committed
style: fix D202
1 parent 14cf1b7 commit 94e599d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pytorch_optimizer/optimizer/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ def reduce_max_except_dim(x: torch.Tensor, dim: int) -> torch.Tensor:
252252
:param x: torch.Tensor. tensor to reduce-max.
253253
:param dim: int. dimension to exclude.
254254
"""
255-
256255
rank: int = len(x.shape)
257256
if rank == 0:
258257
return x

0 commit comments

Comments
 (0)