警告:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA

加入

import os 
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'

demo:

import os 
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow as tf
tf.enable_eager_execution()
print(tf.add(1, 2).numpy())
hello = tf.constant('Hello, TensorFlow!')
print(hello.numpy())

原文地址:https://www.cnblogs.com/sea-stream/p/10285576.html