python环境之前有,python版本 Python 3.6.4
import tensorflow as tf
a = tf.add(3,5)
print(a)
sess = tf.Session()
r = sess.run(a)
print(r)
2018-05-08 22:14:06.687962: I tensorflow/core/platform/cpu_feature_guard.cc:140] 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'
import tensorflow as tf
a = tf.add(3,5)
print(a)
#Tensor("Add:0", shape=(), dtype=int32)
sess = tf.Session()
r = sess.run(a)
print(r)
#8