CUDA安装路径:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0 cuDNN安装路径:C:\tools\cuda\bin
C:\Program Files\NVIDIA Corporation\NVSMI C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\extras\CUPTI\lib64 C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin
import sys sys.path.append("C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin")
import pycuda.driver as cuda import pycuda.autoinit
这样应该可以完成tensorflow GPU版本的安装和使用。