pytorch/torch/autograd
PyTorch MergeBot 1dd6b76914 Revert "[1/N] Remove unused loop variables (#166258)"
This reverts commit 76b2c37045.

Reverted https://github.com/pytorch/pytorch/pull/166258 on behalf of https://github.com/atalman due to breaks test/distributed/test_serialization.py::TestSerialization::test_weights_only [GH job link](https://github.com/pytorch/pytorch/actions/runs/18894311802/job/53929321703) [HUD commit link](76b2c37045) ([comment](https://github.com/pytorch/pytorch/pull/166258#issuecomment-3460964612))
2025-10-29 11:10:37 +00:00
..
_functions Fix pyrefly error syntax (2/n) (#166448) 2025-10-29 00:36:40 +00:00
__init__.py Fix pyrefly error syntax (2/n) (#166448) 2025-10-29 00:36:40 +00:00
anomaly_mode.py [BE][PYFMT] migrate PYFMT for torch/[a-c]*/ to ruff format (#144554) 2025-07-03 18:56:07 +00:00
forward_ad.py [pytree] add APIs to determine a class is a namedtuple or PyStructSequence (#113257) 2025-04-01 10:40:43 +00:00
function.py [Code Clean] Clean asserts in torch/autograd. (#165627) 2025-10-20 23:03:47 +00:00
functional.py [Code Clean] Clean asserts in torch/autograd. (#165627) 2025-10-20 23:03:47 +00:00
grad_mode.py Fix pyrefly error syntax (2/n) (#166448) 2025-10-29 00:36:40 +00:00
gradcheck.py Revert "[1/N] Remove unused loop variables (#166258)" 2025-10-29 11:10:37 +00:00
graph.py Fix pyrefly error syntax (2/n) (#166448) 2025-10-29 00:36:40 +00:00
profiler_legacy.py Fix pyrefly error syntax (2/n) (#166448) 2025-10-29 00:36:40 +00:00
profiler_util.py Fix pyrefly ignores 1/n (#166239) 2025-10-26 00:44:10 +00:00
profiler.py Fix pyrefly error syntax (2/n) (#166448) 2025-10-29 00:36:40 +00:00
variable.py