我安装了tensorflow-gpu版本,并尝试按照建议测试GPU设置
import tensorflow as tf
print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))但是,我得到了以下信息
Num GPUs Available: 0我的机器确实有GPU卡,如下所示,为什么没有被Tensorflow选中

发布于 2021-01-22 05:29:36
您可能没有以下各项的正确组合:
请在这里检查我的答案,以获得上述内容的正确组合:Tensorflow 2.0 can't use GPU, something wrong in cuDNN? :Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
https://stackoverflow.com/questions/65835954
复制相似问题