1Torch Library API 2================= 3 4The PyTorch C++ API provides capabilities for extending PyTorch's core library 5of operators with user defined operators and data types. Extensions implemented 6using the Torch Library API are made available for use in both the PyTorch eager 7API as well as in TorchScript. 8 9For a tutorial style introduction to the library API, check out the 10`Extending TorchScript with Custom C++ Operators 11<https://pytorch.org/tutorials/advanced/torch_script_custom_ops.html>`_ 12tutorial. 13 14Macros 15------ 16 17.. doxygendefine:: TORCH_LIBRARY 18 19.. doxygendefine:: TORCH_LIBRARY_IMPL 20 21Classes 22------- 23 24.. doxygenclass:: torch::Library 25 :members: 26 27.. doxygenclass:: torch::CppFunction 28 :members: 29 30Functions 31--------- 32 33.. doxygengroup:: torch-dispatch-overloads 34 :content-only: 35 36.. doxygengroup:: torch-schema-overloads 37 :content-only: 38