Libtorch
libtorch is the C++ distribution of PyTorch, providing a native C++ interface to the PyTorch framework. It exposes the same core capabilities as the Python API—tensor computation, automatic differentiation, and neural network building—but targeted at C++ applications and deployment environments. libtorch is distributed as a binary library that can be linked into C++ projects, enabling developers to build and run PyTorch models without Python.
Core components include the ATen tensor library for tensor operations, the autograd system for automatic differentiation,
Typical usage involves compiling with CMake or Bazel and linking against the libtorch binaries, for example
Licensing for libtorch follows the PyTorch project’s BSD-3-Clause license, with some components under third‑party licenses. Libtorch