解决 warning I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 只需要加载如下代码: import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'