[BE][Ez]: FURB148 - remove useless enumerate calls (#145619)

Remove useless enumerate calls

Pull Request resolved: https://github.com/pytorch/pytorch/pull/145619
Approved by: https://github.com/drisspg
This commit is contained in:
Aaron Gokaslan
2025-01-24 23:37:12 +00:00
committed by PyTorch MergeBot
parent 0741963e01
commit f3304571fc
15 changed files with 20 additions and 20 deletions

View File

@ -2499,7 +2499,7 @@ class TestTEFuser(JitTestCase):
for i, func in enumerate(funcs):
num_args = i + 1
for j, gen in enumerate(gen_tensor):
for gen in gen_tensor:
inps = (gen(n), gen(n), gen(n))
func_s = torch.jit.trace(func, inps, check_trace=False)
torch._C._jit_pass_erase_shape_information(func_s.graph)