一、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(==版本號,括號內的可以省略,不指定的話就會更新到最新版本)
如果不想更新也可以,但代碼的移植性就會比較差