(1)成功解决Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
在最顶行加入
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
(2) 解决warnings:
在最顶行加入
import warnings
warnings.filterwarnings("ignore")
(3) FLAGS._parse_flags()报错AttributeError:_parse_flags
用FLAGS.flag_values_dict()替换FLAGS._parse_flags(),
问题完美解决,不再出现报错
(4) Visible Deprecation Warning
method 1: 使用更早的numpy版本
method 2: 加上dtype=object