[Python] TensorFlow 錯誤
1 min readOct 29, 2017
當你安裝完TensorFlow,第一次使用Python 執行TensorFlow時,如:顯示Hello, TensorFlow。
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
出現錯錯誤碼:
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn’t…..
解決方法,在程式碼中加入:
import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'