pytorch/docs/cpp/source/library.rst
chronos_secgrp_pytorch_oss_ci_oncall d7d8cf9170 2022-07-21 nightly release (2fb2740ef9)
2022-07-21 00:02:37 -07:00

37 lines
851 B
ReStructuredText

Torch Library API
=================
The PyTorch C++ API provides capabilities for extending PyTorch's core library
of operators with user defined operators and data types. Extensions implemented
using the Torch Library API are made available for use in both the PyTorch eager
API as well as in TorchScript.
For a tutorial style introduction to the library API, check out the
`Extending TorchScript with Custom C++ Operators
<https://pytorch.org/tutorials/advanced/torch_script_custom_ops.html>`_
tutorial.
Macros
------
.. doxygendefine:: TORCH_LIBRARY
.. doxygendefine:: TORCH_LIBRARY_IMPL
Classes
-------
.. doxygenclass:: torch::Library
:members:
.. doxygenclass:: torch::CppFunction
:members:
Functions
---------
.. doxygengroup:: torch-dispatch-overloads
:content-only:
.. doxygengroup:: torch-schema-overloads
:content-only: