1.下载CUDA:https://developer.nvidia.com/cuda-downloads
2.根据官网提示安装CUDA
3.下载Cudnn: https://developer.nvidia.com/rdp/cudnn-download
4.执行sudo dpkg -i libcudnn7-dev_7.0.3.11-1+cuda9.0_amd64.deb (更多安装方法:https://developer.nvidia.com/compute/machine-learning/cudnn/secure/v7.0.5/prod/Doc/cuDNN-Developer-Guide)