mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fixes #155041 Pull Request resolved: https://github.com/pytorch/pytorch/pull/155088 Approved by: https://github.com/svekars Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
50 lines
842 B
Markdown
50 lines
842 B
Markdown
```{eval-rst}
|
|
.. currentmodule:: torch.overrides
|
|
```
|
|
|
|
# torch.overrides
|
|
```{eval-rst}
|
|
.. py:module:: 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
|
|
```{eval-rst}
|
|
.. autofunction:: get_ignored_functions
|
|
```
|
|
|
|
```{eval-rst}
|
|
.. autofunction:: get_overridable_functions
|
|
```
|
|
|
|
```{eval-rst}
|
|
.. autofunction:: resolve_name
|
|
```
|
|
|
|
```{eval-rst}
|
|
.. autofunction:: get_testing_overrides
|
|
```
|
|
|
|
```{eval-rst}
|
|
.. autofunction:: handle_torch_function
|
|
```
|
|
|
|
```{eval-rst}
|
|
.. autofunction:: has_torch_function
|
|
```
|
|
|
|
```{eval-rst}
|
|
.. autofunction:: is_tensor_like
|
|
```
|
|
|
|
```{eval-rst}
|
|
.. autofunction:: is_tensor_method_or_property
|
|
```
|
|
|
|
```{eval-rst}
|
|
.. autofunction:: wrap_torch_function
|
|
```
|