我安装了“ tensorflow-GPU”,CUDA 10.0。我的GPU是GTX1660 ti。 我还测试了CUDA 10.2和11。我在Windows PATH中添加了cudnn,但仍然出现此错误。
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