Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Pull Request resolved: #48280 Adding new API for the kineto profiler that supports enable predicate function Test Plan: unit test Reviewed By: ngimel Differential Revision: D25142220 Pulled By: ilia-cher fbshipit-source-id: c57fa42855895075328733d7379eaf3dc1743d14
- Loading branch information
1 parent
4a870f6
commit daaf932
Showing
7 changed files
with
375 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.. currentmodule:: torch.profiler | ||
|
||
torch.profiler | ||
============== | ||
|
||
Overview | ||
-------- | ||
.. automodule:: torch.profiler | ||
|
||
|
||
API Reference | ||
------------- | ||
|
||
.. autoclass:: torch.profiler.profile | ||
:members: | ||
|
||
.. autofunction:: torch.profiler.schedule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# 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, ProfilerAction, ProfilerActivity |
Oops, something went wrong.