Bootstrap

tensorFlow测试及屏蔽warning信息

#tensorFlow测试及屏蔽warning信息

import tensorflow as tf

-#用于调整tensorflow的日志级别
-#在tensorflow运行时,会出现warning信息!
import os
os.environ[‘TF_CPP_MIN_LOG_LEVEL’] = ‘2’

hello = tf.constant(‘hellow, tensorflow!’)
sess = tf.Session()
print(sess.run(hello))

交友、征婚就找征友网

;