一、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,))])就好了
扫描二维码关注公众号,回复:
7932953 查看本文章
三、colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
版本警告问题,意思是说这个方法将在下一个版本中删除
解决方法:更新tensorflow版本,pip install --upgrade tensorflow(==版本号,括号内的可以省略,不指定的话就会更新到最新版本)
如果不想更新也可以,但代码的移植性就会比较差