Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

neilisaac / torch   python

Repository URL to install this package:

/ profiler / __init__.py

# type: ignore
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 ``torch.autograd`` module is considered legacy and will be deprecated.

'''

from .profiler import profile, schedule, tensorboard_trace_handler, ProfilerAction, ProfilerActivity
from torch.autograd import kineto_available, DeviceType
from torch.autograd.profiler import record_function