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(==版本号,括号内的可以省略,不指定的话就会更新到最新版本)

如果不想更新也可以,但代码的移植性就会比较差

猜你喜欢

转载自www.cnblogs.com/lyf98/p/11908655.html