官网网址:https://tensorflow.google.cn/install/source#linux
查看Ubuntu版本:cat /etc/issue
cat /etc/issue
cuda版本查看:nvcc -V 或 cat /usr/local/cuda/version.txt
nvcc -V
cat /usr/local/cuda/version.txt
cudnn版本查看:cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2,图示版本为7.0.5
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
tensorflow和cuda, cudnn版本对应关系