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'