-
Notifications
You must be signed in to change notification settings - Fork 21.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for torch.overrides submodule. (#48170)
Summary: Fixes #48087 Pull Request resolved: #48170 Reviewed By: ejguan Differential Revision: D25220942 Pulled By: ezyang fbshipit-source-id: a2b7f7b565f5e77173d8ce2fe9676a8131f929b6
- Loading branch information
1 parent
42e7cdc
commit 4e15877
Showing
5 changed files
with
192 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.. 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters