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