pytorch/docs/source/torch.overrides.rst
albanD 4143b6b89b Add torch_dispatch and modes to extending.rst note (#102087)
The following subjects are not in this PR and will be done in a follow up:
- Go through torch_function section and update to the latest phrasing and link to the proper new sections
- Go through torch.library and custom device docs to add links to the new sections as appropriate
- Top level explanations on which component should be used
Pull Request resolved: https://github.com/pytorch/pytorch/pull/102087
Approved by: https://github.com/janeyx99
2023-06-22 12:56:35 +00:00

30 lines
635 B
ReStructuredText

.. currentmodule:: torch.overrides
torch.overrides
---------------
This module exposes various helper functions for the ``__torch_function__``
protocol. See :ref:`extending-torch-python` for more details on the
``__torch_function__`` protocol.
Functions
~~~~~~~~~
.. autofunction:: get_ignored_functions
.. autofunction:: get_overridable_functions
.. autofunction:: resolve_name
.. autofunction:: get_testing_overrides
.. autofunction:: handle_torch_function
.. autofunction:: has_torch_function
.. autofunction:: is_tensor_like
.. autofunction:: is_tensor_method_or_property
.. autofunction:: wrap_torch_function