mirror of
				https://github.com/pytorch/pytorch.git
				synced 2025-11-04 08:00:58 +08:00 
			
		
		
		
	Reverts #80451, as this caused problems reported by many internal and external users. The generated C++ docs are used, even if they are lacking in human-generated content. Fixes #80505 Pull Request resolved: https://github.com/pytorch/pytorch/pull/81719 Approved by: https://github.com/kit1980, https://github.com/albanD
		
			
				
	
	
		
			38 lines
		
	
	
		
			851 B
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
			
		
		
	
	
			38 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:
 |