본문 바로가기

나의 플랫폼/TensorFlow

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

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

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



Tensorflow를 GPU로 돌리고 있기 때문에 위와 같은 경고를 무시 했었는데,

혹시나 해서 구글링을 했더니 역시나 답을 깔끔하게 해놓았다.


결론 부터 말하자면, GPU로 테스트 하시는 분들은 신경 쓰지 않아도 된다.



만약, CPU로 테스트를 진행하시는 분들은 아래 내용을 참고 하세요.


If you don't have a GPU and want to utilize CPU as much as possible, you should build tensorflow from the source optimized for your CPU with AVX, AVX2, and FMA enabled if your CPU supports them. It's been discussed in this question and also this GitHub issue. Tensorflow uses an ad-hoc build system called bazel and building it is not that trivial, but is certainly doable. After this, not only will the warning disappear, tensorflow performance should also improve.


https://stackoverflow.com/a/47227886