-
Notifications
You must be signed in to change notification settings - Fork 21.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Adding new API for the kineto profiler that supports enable predicate function - better support for profiling of training loops (example in test_profiler_kineto_api) Test Plan: python test/test_profiler.py -k test_profiler_kineto_api Differential Revision: [D25142220](https://our.internmc.facebook.com/intern/diff/D25142220) [ghstack-poisoned]
- Loading branch information
Showing
4 changed files
with
75 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
# type: ignore | ||
r''' | ||
PyTorch Profiler API | ||
PyTorch Profiler is a tool that allows the collecton of the performance metrics during the model 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 |
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