• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this T

python 搞代码 4年前 (2022-01-07) 38次浏览 已收录 0个评论

这篇文章主要介绍了tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this T的相关知识,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下

遇到了这个问题,意思是你的 CPU 支持AVX AVX2 (可以加速CPU计算),但你安装的 TensorFlow 版本不支持

解决:1. 如果是初学者 或者 没有太大计算速度的需求,在开头加上这两行忽略这个提示即可

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

说明:

os.environ[“TF_CPP_MIN_LOG_LEVEL”] = ‘1’ #来源gaodai#ma#com搞*!代#%^码$网 默认,显示所有信息
os.environ[“TF_CPP_MIN_LOG_LEVEL”] = ‘2’ # 只显示 warning 和 Error
os.environ[“TF_CPP_MIN_LOG_LEVEL”] = ‘3’ # 只显示 Error

2. 如果需要对CPU进行优化,可以访问下面的github,重新编译tensorflow源码以兼容AVX

https://github.com/lakshayg/tensorflow-build

总结

到此这篇关于I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this T的文章就介绍到这了,更多相关I tensorflow/core/platform/cpu_feature_guard.cc:140]内容请搜索gaodaima搞代码网以前的文章或继续浏览下面的相关文章希望大家以后多多支持gaodaima搞代码网

以上就是tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this T的详细内容,更多请关注gaodaima搞代码网其它相关文章!


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this T

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址