Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA

本文解析了在使用TensorFlow CPU版本时遇到的关于AVX2 FMA指令集支持的警告信息,详细解释了该警告的意义,并提供了解决方案,即通过设置环境变量TF_CPP_MIN_LOG_LEVEL为2来屏蔽此警告。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

遇见这个提示是什么意思?

背景:今天安装的tensorflow是cpu版本的 在写了一个小小的demo后 出现了一个提示:

            2018-10-15 16:14:02.486398: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA

意思:

            这个警告是告诉使用者,你的cpu是支持AVX的

如何去掉这个无关痛痒的警告:

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

 

Skipping registering GPU devices... 2025-07-26 19:41:36.404421: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA 2025-07-26 19:41:36.434980: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 2000000000 Hz 2025-07-26 19:41:36.441018: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f2764000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2025-07-26 19:41:36.441046: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2025-07-26 19:41:36.442874: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-07-26 19:41:36.442890: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] WARNING:tensorflow:From /root/Python/conda_lit/kind/lib/python3.6/site-packages/tf_slim/layers/layers.py:1089: Layer.apply (from tensorflow.python.keras.engine.base_layer_v1) is deprecated and will be removed in a future version. Instructions for updating: Please use `layer.__call__` method instead. loaded ./checkpoint/decom_net_train/model.ckpt loaded ./checkpoint/illumination_adjust_net_train/model.ckpt No restoration pre model! (480, 640, 3) (680, 720, 3) (415, 370, 3) Traceback (most recent call last): File "evaluate.py", line 73, in <module> eval_low_im = load_images(eval_low_data_name[idx]) File "/root/Python/KinD-master/KinD-master/utils.py", line 63, in load_images im = Image.open(file) File "/root/Python/conda_lit/kind/lib/python3.6/site-packages/PIL/Image.py", line 2975, in open fp = builtins.open(filename, "rb") IsADirectoryError: [Errno 21] Is a directory: './test/results'
最新发布
07-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值