pytorch/torch/utils
Yuanyuan Chen 3cda34ebde [2/N] Apply ruff UP035 check in torch files (#164054)
This is the result of applying the ruff `UP035` check.
`Callable` is imported from `collections.abc` instead of `typing`.
`TypeAlias` is also imported from `typing`.
This PR is the follow-up of #163947.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/164054
Approved by: https://github.com/ezyang, https://github.com/Skylion007
2025-09-29 03:35:32 +00:00
..
_strobelight [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
_sympy [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
backcompat
benchmark [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
data [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
hipify [amd] Add cudaHostFn_t to cuda_to_hip_mappings (#164007) 2025-09-27 06:09:50 +00:00
jit
model_dump
serialization
tensorboard [data foundation][vizard] Prevent checking the device type of numpy object in Tensorboard logger (#162888) 2025-09-14 08:09:08 +00:00
viz
__init__.py
_appending_byte_serializer.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
_config_module.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
_config_typing.pyi
_content_store.py
_contextlib.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
_cpp_embed_headers.py
_cpp_extension_versioner.py
_cxx_pytree.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
_debug_mode.py DebugMode supports_higher_order_operators=True (#163824) 2025-09-25 17:11:43 +00:00
_device.py
_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 [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
_get_clean_triton.py
_helion.py
_import_utils.py
_mode_utils.py
_ordered_set.py
_python_dispatch.py [BE] Slight improvements to documentation in python_dispatch (#162963) 2025-09-21 01:45:46 +00:00
_pytree.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +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
_triton.py Workaround for mtia double init issue in has_triton (#162974) 2025-09-16 04:46:11 +00:00
_typing_utils.py
_zip.py
backend_registration.py [1/N] Remove 'type: ignore' suppressions (#163468) 2025-09-23 03:53:11 +00:00
bundled_inputs.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
checkpoint.py Add early_stop kwarg to torch.utils.checkpoint (#160781) 2025-08-26 22:32:35 +00:00
collect_env.py
cpp_backtrace.py
cpp_extension.py [Code Clean] Remove deadcodes about Python3.9 [4/N] (#163643) 2025-09-24 07:30:50 +00:00
deterministic.py
dlpack.py
file_baton.py
flop_counter.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
hooks.py
mkldnn.py
mobile_optimizer.py
model_zoo.py
module_tracker.py
show_pickle.py
throughput_benchmark.py
weak.py