LibTorch¶
red links against the PyTorch C++ distribution (LibTorch). The CPU build is sufficient.
Download¶
From the PyTorch download page, select:
- OS: Linux
- Package: LibTorch
- Language: C++ / Java
- Compute Platform: CPU
Download the resulting zip.
Install¶
Unzip into red/lib/:
Result:
red's CMakeLists.txt references ${CMAKE_SOURCE_DIR}/lib/libtorch — no further config needed.