I am brand-new on TensorFlow. I was installing TensorFlow adhering to all the instrutions that there are on the main internet page.

You are watching: Your cpu supports instructions that this tensorflow binary was not compiled to use: avx2 fma

Tright here are a instruction that claims "Verify the install" and also you have to type this:

python3 -c "import tensorcirculation as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal(<1000, 1000>)))"When I tried this, I acquired this message:

Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2I read around it and also I found some answers as "It"s just a warning" or "You have to use this code" or "You have to compile", however I don"t understand what is the finest answer to follow.



According to the official TensorFlow documentation:

Starting with TensorFlow 1.6, binaries usage AVX instructions which might not run on older CPUs.

This would seem to indicate that if you had the opposite issue (your CPU did not support AVX), you might have actually trouble.

In any type of situation, this StackOvercirculation question indicates that if you want much better performance running TensorFlow on the CPU (and to eliminate the warning), you will desire to construct TensorFlow yourself via support for AVX instructions. Alternatively, you have the right to attempt downloading and install a precompiled variation through assistance for these instructions. Otherwise, this warning seems choose it deserve to safely be ignored (assuming you run into no other issues).


If you have a GPU, you shouldn"t care about AVX support bereason even more expensive ops will be dispatched on a GPU device (unless explicitly collection not to). In this case, you deserve to ssuggest overlook this warning by

Import OS: os.environ<"TF_CPP_MIN_LOG_LEVEL"> = "2"



Thanks for contributing a solution to Super User!

Please be certain to answer the question. Provide details and share your research!

But avoid

Asking for help, clarification, or responding to other answers.Making statements based upon opinion; ago them up with referrals or personal endure.

See more: I Can Bring Home The Bacon Fry It Up In A Pan ?" Bringing Home The Bacon

To learn more, watch our tips on writing good answers.

Article Your Answer Discard

By clicking “Message Your Answer”, you agree to our terms of service, privacy plan and cookie plan

Not the answer you're looking for? Browse various other concerns tagged python or ask your own question.

Test tensorflow-gpu failed via Status: CUDA driver variation is inenough for CUDA runtime variation (which is not true)
website architecture / logo design © 2021 Stack Exadjust Inc; user contributions licensed under cc by-sa. rev2021.9.14.40215

Your privacy

By clicking “Accept all cookies”, you agree Stack Exadjust can save cookies on your device and also discshed information in accordance via our Cookie Policy.