pytorch/docs/source/profiler.rst
albanD c4db607607 Doc test non packages (#110568)
Add non-package python modules to the public API checks.
The original change is to remove the `ispkg` check in this line
https://github.com/pytorch/pytorch/blob/main/docs/source/conf.py#L518

Everything else is to add the appropriate modules to the rst files, make sure every module we provide can be imported (fixed by either making optional dependencies optional or just deleting files that have been un-importable for 3 years), make API that are both modules and functions (like torch.autograd.gradcheck) properly rendered on the docs website without confusion and add every non-documented API to the allow list (~3k of them).

Next steps will be to try and fix these missing docs
Pull Request resolved: https://github.com/pytorch/pytorch/pull/110568
Approved by: https://github.com/zou3519
2023-10-06 14:16:01 +00:00

45 lines
976 B
ReStructuredText

.. currentmodule:: torch.profiler
torch.profiler
==============
Overview
--------
.. automodule:: torch.profiler
API Reference
-------------
.. autoclass:: torch.profiler._KinetoProfile
:members:
.. autoclass:: torch.profiler.profile
:members:
.. autoclass:: torch.profiler.ProfilerAction
:members:
.. autoclass:: torch.profiler.ProfilerActivity
:members:
.. autofunction:: torch.profiler.schedule
.. autofunction:: torch.profiler.tensorboard_trace_handler
Intel Instrumentation and Tracing Technology APIs
-------------------------------------------------
.. autofunction:: torch.profiler.itt.is_available
.. autofunction:: torch.profiler.itt.mark
.. autofunction:: torch.profiler.itt.range_push
.. autofunction:: torch.profiler.itt.range_pop
.. This module needs to be documented. Adding here in the meantime
.. for tracking purposes
.. py:module:: torch.profiler.itt
.. py:module:: torch.profiler.profiler
.. py:module:: torch.profiler.python_tracer