Skip to content

Commit

Permalink
Fix unused loop control variable for pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stancld committed Apr 16, 2024
1 parent 925a3b1 commit 3f013cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unittests/bases/test_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def mem():
m = DummyListMetric().cuda()
after_init = mem()

for i in range(100):
for _ in range(100):
m(x=torch.randn(10000).cuda())

m.reset()
Expand Down

0 comments on commit 3f013cf

Please sign in to comment.