mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Link directly to new Custom Ops Landing Page (#137933)
e.g., click on first link in https://docs-preview.pytorch.org/pytorch/pytorch/137933/library.html#testing-custom-ops Pull Request resolved: https://github.com/pytorch/pytorch/pull/137933 Approved by: https://github.com/zou3519
This commit is contained in:
parent
aef4317ec8
commit
eaec72d1e6
3 changed files with 4 additions and 4 deletions
|
|
@ -11,7 +11,7 @@ custom operators, and extending operators defined with PyTorch's C++ operator
|
|||
registration APIs (e.g. aten operators).
|
||||
|
||||
For a detailed guide on effectively using these APIs, please see
|
||||
:ref:`custom-ops-landing-page`
|
||||
`PyTorch Custom Operators Landing Page <https://pytorch.org/tutorials/advanced/custom_ops_landing_page.html>`_
|
||||
for more details on how to effectively use these APIs.
|
||||
|
||||
Testing custom ops
|
||||
|
|
|
|||
|
|
@ -13,8 +13,7 @@ and have it behave like PyTorch's built-in operators. In order to do so, you mus
|
|||
register the custom operation with PyTorch via the Python :ref:`torch-library-docs` or C++ TORCH_LIBRARY
|
||||
APIs.
|
||||
|
||||
|
||||
Please see :ref:`custom-ops-landing-page` for more details.
|
||||
Please see `PyTorch Custom Operators Landing Page <https://pytorch.org/tutorials/advanced/custom_ops_landing_page.html>`_ for more details.
|
||||
|
||||
.. _extending-autograd:
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,8 @@ def allow_in_graph(fn):
|
|||
If you are using :func:`torch.compile` (with backend="inductor" (the default)), or
|
||||
:func:`torch.export.export`, and trying to black-box a Python function throughout
|
||||
all tracing, do not use this API.
|
||||
Instead, please create a custom operator (see :ref:`custom-ops-landing-page`)
|
||||
Instead, please create a custom operator (see `PyTorch Custom Operators Landing Page
|
||||
<https://pytorch.org/tutorials/advanced/custom_ops_landing_page.html>`_)
|
||||
|
||||
.. warning::
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue