pytorch/torch/utils
Pian Pawakapan 82ef1b5db3 [DebugMode] refactor logs into _DebugCalls (#165376)
Refactors `DebugMode.operators` to be more structured `_DebugCall` objects, instead of (op, args, kwargs, call_depth) tuples. Useful going forward for attaching more information (e.g. output info, call metadata).

Is BC-breaking, but attaches an `__iter__` method for `_OpCall` and `_RedistributeCall` so previous tuple usage is accessible.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165376
Approved by: https://github.com/yushangdi
2025-10-22 19:01:56 +00:00
..
_strobelight Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_sympy [RFC] Add pyrefly to lintrunner (#165179) 2025-10-16 20:07:09 +00:00
backcompat
benchmark Revert "[Fix] Use sys.executable instead of hardcoded python (#165633)" 2025-10-17 00:06:40 +00:00
data Enable PLC0414 on ruff (#165828) 2025-10-22 04:56:52 +00:00
hipify Revert "[Submodule] Bump FBGEMM to latest (#165544)" 2025-10-20 17:06:07 +00:00
jit [torch/utils][Code Clean] Clean asserts in hipify/, jit/, model_dump and tensorboard of torch/utils (#165311) 2025-10-14 15:26:23 +00:00
model_dump [torch/utils][Code Clean] Clean asserts in hipify/, jit/, model_dump and tensorboard of torch/utils (#165311) 2025-10-14 15:26:23 +00:00
serialization
tensorboard [torch/utils][Code Clean] Clean asserts in hipify/, jit/, model_dump and tensorboard of torch/utils (#165311) 2025-10-14 15:26:23 +00:00
viz [PyTorch] Add user_metadata display to memory visualizer (#165939) 2025-10-21 18:48:33 +00:00
__init__.py [BE] remove torch deploy - conditionals (#158288) 2025-07-29 17:40:49 +00:00
_appending_byte_serializer.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
_config_module.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
_config_typing.pyi Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
_content_store.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
_contextlib.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
_cpp_embed_headers.py [Fix] Adding missing f prefixes to formatted strings [2/N] (#164066) 2025-09-29 04:40:44 +00:00
_cpp_extension_versioner.py
_cxx_pytree.py Enable PLC0414 on ruff (#165828) 2025-10-22 04:56:52 +00:00
_debug_mode.py [DebugMode] refactor logs into _DebugCalls (#165376) 2025-10-22 19:01:56 +00:00
_device.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
_dtype_abbrs.py
_exposed_in.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
_filelock.py
_foreach_utils.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
_functools.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
_get_clean_triton.py [BE][Ez]: Use sys.executable instead of hardcoded Python (#165679) 2025-10-17 01:07:40 +00:00
_helion.py
_import_utils.py [BE] remove torch deploy - conditionals (#158288) 2025-07-29 17:40:49 +00:00
_mode_utils.py
_ordered_set.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
_python_dispatch.py Back out "Do not decompose in functionalization/proxy tensor if autograd wouldn't have decomposed (#164939)" (#165910) 2025-10-21 16:36:38 +00:00
_pytree.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
_stats.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
_thunk.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
_traceback.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
_triton.py Remove unnecessary noqa suppressions (#164106) 2025-10-18 04:52:41 +00:00
_typing_utils.py
_zip.py
backend_registration.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
bundled_inputs.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
checkpoint.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
collect_env.py [2/N] Fix ruff warnings (#164460) 2025-10-04 03:40:32 +00:00
cpp_backtrace.py
cpp_extension.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
deterministic.py
dlpack.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
file_baton.py Pyrefly suppressions 6/n (#164877) 2025-10-08 02:30:57 +00:00
flop_counter.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
hooks.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
mkldnn.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
mobile_optimizer.py
model_zoo.py
module_tracker.py [BE][PYFMT] migrate PYFMT for torch/[p-z]*/ to ruff format (#144552) 2025-08-07 00:09:56 +00:00
show_pickle.py
throughput_benchmark.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00
weak.py Revert "[torch/utils][Code Clean] Clean asserts in torch/utils/*.py (#165410)" 2025-10-21 16:27:54 +00:00