- git clone https://github.com/pytorch/pytorch.git
- git submodule update --init
- python3 setup.py install
- git clone https://github.com/pytorch/pytorch.git
- git submodule update --init
- export CUDNN_INCLUDE_DIR=/opt/libs/cudnn/7.1/cuda9/include
- export CUDNN_LIB_DIR=/opt/libs/cudnn/7.1/cuda9/lib64
- export C_INCLUDE_PATH=$INCLUDE:/opt/libs/cudnn/7.1/cuda9/include
- python3 setup.py install