tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this T
作者:Iovebecky 时间:2023-12-19 13:00:34
遇到了这个问题,意思是你的 CPU 支持AVX AVX2 (可以加速CPU计算),但你安装的 TensorFlow 版本不支持
解决:1. 如果是初学者 或者 没有太大计算速度的需求,在开头加上这两行忽略这个提示即可
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
说明:
os.environ["TF_CPP_MIN_LOG_LEVEL"] = '1' # 默认,显示所有信息
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
来源:https://blog.csdn.net/zhaohaibo_/article/details/80573676
标签:tensorflow,CPU,supports
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
基于Python实现经典植物大战僵尸游戏
2021-01-28 11:17:20
![](https://img.aspxhome.com/file/2023/8/84038_0s.jpg)
详解vue数组遍历方法forEach和map的原理解析和实际应用
2024-05-05 09:06:18
Python如何把十进制数转换成ip地址
2023-02-20 21:36:55
如何用Python和JS实现的Web SSH工具
2021-04-23 13:50:13
![](https://img.aspxhome.com/file/2023/0/127670_0s.png)
mysql 安全管理详情
2024-01-18 05:58:00
![](https://img.aspxhome.com/file/2023/7/101537_0s.png)
Django 实现图片上传和显示过程详解
2022-06-13 22:22:27
python特效之字符成像详解
2021-06-07 02:18:45
![](https://img.aspxhome.com/file/2023/0/80400_0s.jpg)
说说如何遍历Python列表的方法示例
2023-05-26 14:01:52
![](https://img.aspxhome.com/file/2023/6/112606_0s.png)
python环境中的概念conda中与环境相关指令操作
2021-01-09 19:40:55
![](https://img.aspxhome.com/file/2023/8/121668_0s.jpg)
不完全HTML在线编辑器收集
2007-11-08 12:20:00
![](https://img.aspxhome.com/file/UploadPic/200711/8/2007118122553183s.jpg)
python 调用pyautogui 实时获取鼠标的位置、移动鼠标的方法
2021-01-03 05:25:29
![](https://img.aspxhome.com/file/2023/9/101069_0s.jpg)
sqlserver 无法验证产品密匙的完美解决方案[测试通过]
2024-01-23 11:53:23
OpenCV-Python使用分水岭算法实现图像的分割与提取
2021-04-20 13:04:03
![](https://img.aspxhome.com/file/2023/5/135275_0s.png)
Django中自定义查询对象的具体使用
2021-05-26 03:11:18
numpy数组叠加的实现示例
2021-09-29 11:59:18
MySQL execute、executeUpdate、executeQuery三者的区别
2024-01-23 15:32:11
解决Vue警告Write operation failed:computed value is readonly
2024-04-09 10:49:25
Django定时任务Django-crontab的使用详解
2022-10-14 12:49:13
python正则表达式常见的知识点汇总
2023-10-02 18:56:21
![](https://img.aspxhome.com/file/2023/1/99651_0s.jpg)
mysql学习笔记之数据引擎
2024-01-25 12:38:28