C++ — PyTorch 1.10.1 documentation
https://pytorch.org/docs/stable/cpp_index.htmlPyTorch provides several features for working with C++, and it’s best to choose from them based on your needs. At a high level, the following support is available: TorchScript C++ API TorchScript allows PyTorch models defined in Python to be serialized and then loaded and run in C++ capturing the model code via compilation or tracing its execution.
PyTorch C++ API — PyTorch master documentation
pytorch.org › cppdocsPyTorch C++ API¶ These pages provide the documentation for the public portions of the PyTorch C++ API. This API can roughly be divided into five parts: ATen: The foundational tensor and mathematical operation library on which all else is built. Autograd: Augments ATen with automatic differentiation.