TensorFlow運行常見錯誤


一、Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2

解決方法:

 

 

 

二、FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate

解決方法:單擊出問題的文件,把np.dtype([("quint8", np.uint8, 1)])修改為np.dtype([("quint8", np.uint8, (1,))])就好了

 

 

三、colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.

版本警告問題,意思是說這個方法將在下一個版本中刪除

解決方法:更新tensorflow版本,pip install --upgrade tensorflow(==版本號,括號內的可以省略,不指定的話就會更新到最新版本)

如果不想更新也可以,但代碼的移植性就會比較差

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM