pytorch/docs/source/torch.overrides.rst
Hameer Abbasi 4e15877d5c Add documentation for torch.overrides submodule. (#48170)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/48087

Pull Request resolved: https://github.com/pytorch/pytorch/pull/48170

Reviewed By: ejguan

Differential Revision: D25220942

Pulled By: ezyang

fbshipit-source-id: a2b7f7b565f5e77173d8ce2fe9676a8131f929b6
2020-11-30 11:25:31 -08:00

28 lines
594 B
ReStructuredText

.. currentmodule:: torch.overrides
torch.overrides
---------------
This module exposes various helper functions for the ``__torch_function__``
protocol. See :ref:`extending-torch` for more detail on the
``__torch_function__`` protocol.
Functions
~~~~~~~~~
.. autofunction:: get_ignored_functions
.. autofunction:: get_overridable_functions
.. 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