和Drive PX2的编译没有什么区别
源码编译步骤
注意:当完全按照以下步骤进行编译时,如果出现错误,注意检查CUDA版本、对应的库是否存在
# Download PyTorch sources
git clone --recursive --branch <version> http://github.com/pytorch/pytorch
cd pytorch
# Set Build Options
export USE_NCCL=0
export USE_DISTRIBUTED=0