mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01:00
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
28 lines
594 B
ReStructuredText
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
|