/usr/local/lib64/python3.6/site-packages/torch/utils
NameSizeModeActions
backcompat/-0755rm
benchmark/-0755rm
bottleneck/-0755rm
data/-0755rm
ffi/-0755rm
hipify/-0755rm
model_dump/-0755rm
tensorboard/-0755rm
__pycache__/-0755rm
bundled_inputs.py222820644editdlrm
checkpoint.py121650644editdlrm
collect_env.py167230644editdlrm
cpp_extension.py877390644editdlrm
dlpack.py20450644editdlrm
file_baton.py13960644editdlrm
hooks.py73730644editdlrm
mkldnn.py72190644editdlrm
mobile_optimizer.py62640644editdlrm
model_zoo.py1170644editdlrm
show_pickle.py51690644editdlrm
throughput_benchmark.py63870644editdlrm
_cpp_extension_versioner.py19910644editdlrm
_crash_handler.py6730644editdlrm
_python_dispatch.py16360644editdlrm
_pytree.py81740644editdlrm
__init__.py6350644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/utils/__init__.py (635B)
import os.path as _osp import sys from .throughput_benchmark import ThroughputBenchmark from ._crash_handler import enable_minidumps, disable_minidumps, enable_minidumps_on_exceptions # Set the module for a given object for nicer printing def set_module(obj, mod): if not isinstance(mod, str): raise TypeError("The mod argument should be a string") obj.__module__ = mod if sys.executable == "torch_deploy": # not valid inside torch_deploy interpreter, no paths exists for frozen modules cmake_prefix_path = None else: cmake_prefix_path = _osp.join(_osp.dirname(_osp.dirname(__file__)), 'share', 'cmake')