您的位置:首页 > 其它

pycharm运行TensorFlow警告:Your CPU supports instructions that this TensorFlow binary was not compiled to

2018-01-12 15:46 621 查看
pycharm运行TensorFlow警告:Your CPU supports instructions that this TensorFlow binary was not compiled to还有警告如下:The TensorFlow library wasn't compiled to use SSE instructions, but these are available on your machine and could speed up CPU computations.原始代码如下:
import tensorflow as tf
hello=tf.constant("Hello!")
sess=tf.Session()
print(sess.run(hello))
加入如下两行代码,问题解决,警告消失
import osos.environ['TF_CPP_MIN_LOG_LEVEL']='2'
import tensorflow as tf
hello=tf.constant("Hello!")
sess=tf.Session()
print(sess.run(hello))
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐