1、安装与环境配置
配置libpytorch c++参考:https://pytorch.org/cppdocs/installing.html
wget https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip
unzip libtorch-shared-with-deps-latest.zip
PYTORCH C++ API接口:https://pytorch.org/cppdocs/
PyTorch 中文教程 & 文档:https://pytorch.apachecn.org/#/
其他参考:Pytorch C++ 环境搭建 https://pytorch.org/cppdocs/installing.html
sudo apt-get update
sudo apt-get install vim make cmake gcc g++ libnss3 tree git openssh-server openssh-client