[英]My GPUs are not visible with tensorflow-gpu 2.1.0 and CUDA 10.1
I am working on Windows 10.我正在研究 Windows 10。
I have installed tensorflow-gpu 2.1.0 and checked that it was in the pip list:我已经安装了 tensorflow-gpu 2.1.0 并检查它是否在 pip 列表中:
My python version is 3.7 and CUDA version is 10.1:我的 python 版本是 3.7,CUDA 版本是 10.1:
Here is what the nvidia-smi command outpouts:这是 nvidia-smi 命令输出的内容:
As you can see I have 2 GPU's installed and visible with the nvidia command but when I use the command 'tf.config.get_visible_devices()' on my notebook I can only see the CPU:如您所见,我安装了 2 个 GPU,并且使用 nvidia 命令可以看到,但是当我在笔记本电脑上使用命令“tf.config.get_visible_devices()”时,我只能看到 CPU:
Any ideas on how to solve this problem please?关于如何解决这个问题的任何想法?
Tensorflow 2.1.0 is compatible with CUDA 10.1
. Tensorflow 2.1.0 与 CUDA 10.1
兼容。 Use command nvcc --version
to verify which CUDA you have installed, and redo the setup if necessary.使用命令nvcc --version
验证您安装了哪个 CUDA,并在必要时重新设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.