您的位置:首页 > 其它

sublime编译警告(sse,avx)及解决办法

2017-09-04 10:33 169 查看
sublime text3在编译tensorflow时会遇到如下警告



The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.


等等

解决方法是

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


以上命令选择忽略警告

TF_CPP_MIN_LOG_LEVEL is a TensorFlow environment variable responsible for the logs, to silence INFO logs set it to 1, to filter out WARNING 2 and to additionally silence ERROR logs (not recommended) set it to 3


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  sublime tensorflow
相关文章推荐