【问题标题】:tensorflow cannot find GPUtensorflow 找不到 GPU
【发布时间】:2020-07-02 16:18:24
【问题描述】:

我已经安装了“tensorflow-GPU”,CUDA 10.0。我的GPU是GTX1660 ti。 我还测试了 bu CUDA 10.2 和 11。我将 cudnn 添加到 windows PATH 但我仍然收到此错误。

Traceback (most recent call last):
  File "D:\Electrical And Programming office\6_AI\RL\5_Pong_DQN\pong_DGN.py", line 38, in <module>
    gpu = tf.config.experimental.list_physical_devices('GPU')[0]
IndexError: list index out of range
>>> print(tf.test.is_built_with_cuda())
True

【问题讨论】:

    标签: python tensorflow gpu


    【解决方案1】:

    我发现了问题。问题出在 CUDA 和 cudnn 的版本上。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-03-12
      • 2021-03-21
      • 1970-01-01
      • 1970-01-01
      • 2022-10-15
      • 2018-08-30
      相关资源
      最近更新 更多