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:
Jane Xu 2024-10-15 09:55:37 -07:00 committed by PyTorch MergeBot
parent aef4317ec8
commit eaec72d1e6
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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:

View file

@ -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::