Files
pytorch/docs/source/torch.overrides.rst
PyTorch MergeBot 48581d74ad Revert "Add dispatch mode testing for meta tensors and other stuff"
This reverts commit c1cdb1216b97970d903a6d6e9e7d0e2b4ffaef46.

Reverted https://github.com/pytorch/pytorch/pull/77477 on behalf of https://github.com/malfet
2022-05-18 02:56:48 +00: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