TensorFlow wasn't compiled to use SSE (etc.) instructions, but these are available

PROBLEM

When I just compile a very simple example with Tensorflow,It just jump out several similar errors like things below.

W : The TensorFlow library wasn’t compiled to use SSE instructions, but these are available on your machine and could speed up CPU computations.

SOLUTION

SSE(Streaming SIMD Extensions)

In computing, Streaming SIMD Extensions (SSE) is an SIMD instruction set extension to the x86 architecture, designed by Intel and introduced in 1999 in their Pentium III series of processors shortly after the appearance of AMD’s 3DNow!

Click here to view more details!

First of all.It starts with the letter ‘W’,which means it’s just a warning.The warnings refer to the fact that your CPU supports SSE Instructions, which allow some fast in-hardware-parallel operations.If you want to enable the option and use SSE,you have got to compile source enabling the specific SSE version you’re targeting.
But I don’t want to waste so much time at the beginning of my study.So if you are just the same as me,you can just add the below two lines in the beginning of your file to fix the warning.
import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值