Remove unused Python variables in torch/[b-z]* (#136963)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/136963
Approved by: https://github.com/ezyang
This commit is contained in:
Tom Ritchford
2024-10-19 13:25:28 +00:00
committed by PyTorch MergeBot
parent fb44658415
commit c0582fd0f8
152 changed files with 376 additions and 528 deletions

View File

@ -868,7 +868,7 @@ def preprocessor(
def mk_repl(templ, include_current_dir=True):
def repl(m):
f = m.group(1)
dirpath, filename = os.path.split(f)
filename = os.path.basename(f)
if (
f.startswith(("ATen/cuda",
"ATen/native/cuda",