我正在尝试在 Windows 机器上设置 Tensorflow 2,我已经检查过该机器具有支持 Cuda 的 GPU(Nvidia Quadro RTX 3000)。我已经安装了必要的 CUDA 库和 SDK 并添加到我的路径中(见下文):.
我已经通过 pip 安装了 tensorflow 和 tensorflow-gpu。我已经使用以下内容检查了我的设置:
gpus = tf.config.list_physical_devices('GPU')
result = tf.config.list_physical_devices()
print(tf.__version__)
print(result)
print('Built with cuda: ', tf.test.is_built_with_cuda())
print('Built with gpu support: ', tf.test.is_built_with_gpu_support())
print('is gpu available: ', tf.test.is_gpu_available())
print('gpus: ', gpus)
然而,我得到的输出是:
2.1.0
[PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU')]
Built with cuda: True
Built with gpu support: True
WARNING:tensorflow:From <ipython-input-1-601dc453d590>:14: is_gpu_available (from tensorflow.python.framework.test_util) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.config.list_physical_devices('GPU')` instead.
is gpu available: False
gpus: []
关于这个问题的其他问题涉及设置 tensorflow 的问题,这似乎不是这里的情况。为什么 tensorflow 仍然看不到我的 GPU?有什么我错过的吗?