mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[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:
committed by
PyTorch MergeBot
parent
0741963e01
commit
f3304571fc
@ -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)
|
||||
|
Reference in New Issue
Block a user