Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions advanced_source/custom_ops_landing_page.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,21 @@ In order to do so, you must register the custom operation with PyTorch via the P
`torch.library docs <https://pytorch.org/docs/stable/library.html>`_ or C++ ``TORCH_LIBRARY``
APIs.

.. toctree::
:maxdepth: 2
:hidden:

python_custom_ops
cpp_custom_ops


Authoring a custom operator from Python
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Please see :ref:`python-custom-ops-tutorial`.
Please see :ref:`python-custom-ops-tutorial` for the Python guide. It covers
the required schema and mutation/aliasing contract, ``opcheck``, functional
operators, mutable operators, and optional registrations such as autograd and
``torch.vmap``.

You may wish to author a custom operator from Python (as opposed to C++) if:

Expand Down Expand Up @@ -43,8 +52,8 @@ The Custom Operators Manual
^^^^^^^^^^^^^^^^^^^^^^^^^^^

For information not covered in the tutorials and this page, please see
`The Custom Operators Manual <https://docs.google.com/document/d/1_W62p8WJOQQUzPsJYa7s701JXt0qf2OfLub2sbkHOaU>`_
(we're working on moving the information to our docs site). We recommend that you
`The Custom Operators Manual <https://docs.pytorch.org/docs/main/notes/custom_operators.html>`_.
We recommend that you
first read one of the tutorials above and then use the Custom Operators Manual as a reference;
it is not meant to be read head to toe.

Expand Down
278 changes: 0 additions & 278 deletions advanced_source/python_custom_ops.py

This file was deleted.

Loading
Loading