Windows 10 TensorFlow无法检测Nvidia GPU

0 投票
0 回答
12 浏览
提问于 2025-04-11 21:46

我的戴尔笔记本电脑上安装了Windows 10,我用它来写Python代码。

TensorFlow和Keras似乎没有问题,因为我能找到它们的版本。

nvidia-smi and nvcc --version

但是TensorFlow出现了问题。这里是我的代码。

import tensorflow as tf
print(tf.config.list_physical_devices('CPU'))
print(tf.config.list_physical_devices('GPU'))

这是输出结果:

[PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU')]
[]

希望有人能帮我,非常感谢。

0 个回答

暂无回答

撰写回答