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