pytorch/torch/autograd
Yuanyuan Chen fbe0d20a17 [2/N] More ruff SIM fixes (#165031)
This is follow-up of #164695 to apply ruff SIM rules to more files. Most changes are about simplifying dict.get because None is already the default value.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165031
Approved by: https://github.com/mlazos
2025-10-14 14:22:54 +00:00
..
_functions Add pyrefly suppressions (3/n) (#164588) 2025-10-03 22:03:03 +00:00
__init__.py Add pyrefly suppressions (3/n) (#164588) 2025-10-03 22:03:03 +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 [4/N] Apply ruff UP035 rule to python code (#164206) 2025-10-01 19:05:53 +00:00
functional.py Add a Additional Example that showcases the usage of torch.autograd.functional.jacobian (#155683) 2025-06-12 19:46:55 +00:00
grad_mode.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
gradcheck.py [2/N] Fix ruff warnings (#164460) 2025-10-04 03:40:32 +00:00
graph.py Revert "Warn if AccumulateGrad stream does not match producer node stream (#165065)" 2025-10-10 17:29:29 +00:00
profiler_legacy.py Add pyrefly suppressions (3/n) (#164588) 2025-10-03 22:03:03 +00:00
profiler_util.py [2/N] More ruff SIM fixes (#165031) 2025-10-14 14:22:54 +00:00
profiler.py Add pyrefly suppressions (3/n) (#164588) 2025-10-03 22:03:03 +00:00
variable.py Flip default value for mypy disallow_untyped_defs [4/11] (#127841) 2024-06-08 18:36:48 +00:00