Installing C++ Distributions of PyTorch — PyTorch master ...
pytorch.org › cppdocs › installingMinimal Example. The first step is to download the LibTorch ZIP archive via the link above. For example: wget https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip unzip libtorch-shared-with-deps-latest.zip. Note that the above link has CPU-only libtorch. If you would like to download a GPU-enabled libtorch, find the right link in the link selector on https://pytorch.org.