Skip to content

Commit 35c734e

Browse files
recfacebook-github-bot
authored andcommitted
Remove unused Python variables in torch/[_-a]* (#133492)
Summary: X-link: pytorch/pytorch#133492 Approved by: https://github.com/albanD Reviewed By: clee2000 Differential Revision: D67153461 fbshipit-source-id: 2182ae5048821fd2670dc42e056ebb833986b869
1 parent f2f2d80 commit 35c734e

File tree

1 file changed

+2
-2
lines changed
  • userbenchmark/dynamo/dynamobench/_dynamo

1 file changed

+2
-2
lines changed

userbenchmark/dynamo/dynamobench/_dynamo/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3580,15 +3580,15 @@ def get_torch_function_mode_stack_at(ind):
35803580

35813581

35823582
def set_torch_function_mode_stack(stack):
3583-
for i in range(_len_torch_function_stack()):
3583+
for _ in range(_len_torch_function_stack()):
35843584
_pop_torch_function_stack()
35853585

35863586
for mode in stack:
35873587
_push_on_torch_function_stack(mode)
35883588

35893589

35903590
def clear_torch_function_mode_stack():
3591-
for i in range(_len_torch_function_stack()):
3591+
for _ in range(_len_torch_function_stack()):
35923592
_pop_torch_function_stack()
35933593

35943594

0 commit comments

Comments
 (0)