/usr/local/lib64/python3.6/site-packages/torch/profiler
NameSizeModeActions
__pycache__/-0755rm
profiler.py180070644editdlrm
__init__.py7200644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/profiler/__init__.py (720B)
r''' PyTorch Profiler is a tool that allows the collecton of the performance metrics during the training and inference. Profiler's context manager API can be used to better understand what model operators are the most expensive, examine their input shapes and stack traces, study device kernel activity and visualize the execution trace. .. note:: An earlier version of the API in :mod:`torch.autograd` module is considered legacy and will be deprecated. ''' from .profiler import profile, schedule, supported_activities, tensorboard_trace_handler, ProfilerAction, ProfilerActivity from torch.autograd import kineto_available, _supported_activities, DeviceType from torch.autograd.profiler import record_function