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):”,问题终于解决了。