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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM