Skip to content

Commit

Permalink
Remove unused Python variables in torch/[_-a]* (#133492)
Browse files Browse the repository at this point in the history
Summary:
X-link: pytorch/pytorch#133492
Approved by: https://github.com/albanD

Reviewed By: clee2000

Differential Revision: D67153461

fbshipit-source-id: 2182ae5048821fd2670dc42e056ebb833986b869
  • Loading branch information
rec authored and facebook-github-bot committed Dec 13, 2024
1 parent f2f2d80 commit 35c734e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userbenchmark/dynamo/dynamobench/_dynamo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3580,15 +3580,15 @@ def get_torch_function_mode_stack_at(ind):


def set_torch_function_mode_stack(stack):
for i in range(_len_torch_function_stack()):
for _ in range(_len_torch_function_stack()):
_pop_torch_function_stack()

for mode in stack:
_push_on_torch_function_stack(mode)


def clear_torch_function_mode_stack():
for i in range(_len_torch_function_stack()):
for _ in range(_len_torch_function_stack()):
_pop_torch_function_stack()


Expand Down

0 comments on commit 35c734e

Please sign in to comment.