Tensorflow错误汇总与解决办法

 

 

2017-12-19

盘点遇到的各种Tensorflow坑(此博客不定期更新):

1.InvalidArgumentError (see above for traceback): Cannot assign a device for operation 'shuffle_batch': Could not satisfy explicit device specification '/device:GPU:0' because no supported kernel for GPU devices is available.

各种google之后,终于找到了解决办法:

原文链接为:https://github.com/tensorflow/tensorflow/issues/2285

于是,把代码中的“with tf.device('/gpu:0'):”改为了“with tf.device(None):”,问题终于解决了。

posted @ 2017-12-19 21:45  Why_is_a_girl  阅读(6328)  评论(2编辑  收藏  举报