Windows下不使用Anaconda安装Tensorflow-gpu简述
- 安装CUDA Tookit,进入自定义,在电脑已有显卡驱动的情况下,只安装第一大项CUDA(其中的VS和Nsight相关内容也不用装)
- 下载对应版本的cuDNN,将其解压合并到CUDA安装文件夹中
- 安装对应版本的Python和Tensorflow,测试
import tensorflow as tf
gpus = tf.config.list_physical_devices("GPU")
print(gpus)
![](https://img2020.cnblogs.com/blog/2065418/202112/2065418-20211224155545774-1459018003.png)
![](https://img2020.cnblogs.com/blog/2065418/202112/2065418-20211224155748627-400826822.png)
import tensorflow as tf
gpus = tf.config.list_physical_devices("GPU")
print(gpus)