tensorflow:TensorFlow binary was not compiled to use: AVX2 FMA

  • 遇到到一个警告
>>> mysess = tf.Session()
2018-07-27 12:51:04.879592: I tensorflow/core/platform/cpu_feature_guard.cc:141] 
Your CPU supports instructions that this TensorFlow binary was not compiled to 
use: AVX2 FMA
  • 对应消除警告的方法
import os  
os.environ["TF_CPP_MIN_LOG_LEVEL"]='1' # 这是默认的显示等级,显示所有信息  
os.environ["TF_CPP_MIN_LOG_LEVEL"]='2' # 只显示 warning 和 Error   
os.environ["TF_CPP_MIN_LOG_LEVEL"]='3' # 只显示 Error  

猜你喜欢

转载自blog.csdn.net/w_bu_neng_ku/article/details/81235442