device_lib.list_local_devices()无法找到我的gtx 960 gpu

时间:2017-09-29 10:46:47

标签: tensorflow cuda

我只是运行https://github.com/tensorflow/models/tree/master/tutorials/rnn/ptb的代码,但我收到如下错误:

Traceback (most recent call last):
  File "F:/Project/PY/Tensorflow/Official/RNN/ptb/ptb_word_lm.py", line 502, in <module>
    tf.app.run()
  File "D:\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "F:/Project/PY/Tensorflow/Official/RNN/ptb/ptb_word_lm.py", line 429, in main
    % (len(gpus), FLAGS.num_gpus))
ValueError: Your machine has only 0 gpus which is less than the requested --num_gpus=1.

然后我知道device_lib.list_local_devices()什么都不返回。

我确实有一个gtx 960m的gpu,为什么device_lib.list_local_devices()无法识别我的设备?!

0 个答案:

没有答案