/
usr
/
local
/
lib64
/
python3.6
/
site-packages
/
torch
/
profiler
/
/usr/local/lib64/python3.6/site-packages/torch/profiler
mkdir
upload
Name
Size
Mode
Actions
__pycache__/
-
0755
rm
profiler.py
18007
0644
edit
dl
rm
__init__.py
720
0644
edit
dl
rm
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
Save
cmd:
run