Installing C++ Distributions of PyTorch — PyTorch main documentationhttps://pytorch.org/cppdocs/installing.html#system-requirements 1,下载libtorch PyTorch (cuda版本与libtorch版本必须保持一致) 2,在Clion设置 C++编译平台 在Toolchains中配置visual studio的msvc编译