2018. 1. 15. 20:48

1. 조사이유 : 텐서플로우 최초 설치 후 예제 프로그램 실행시 다음과 같은 메세지 출력


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

b'Hello, TensorFlow!'


2. 원인

 

최신 CPU에서 신규 명령어를 지원하니 바젤이라는 빌드 시스템을 이용하여 빌드하여 사용하기 바란다는 의미


3. 기타

   바젤은 리눅스 mac 전용이며 필자처럼 window 에서 빌드하기는 힘들다. ㅠ.ㅠ


4. 해당 Warning 없애기(GPU도 없고, 빌드도 어려울 경우)

  원리 : TF 로그 레벨을 낮춤

  1) Run > Edit Configurations로 간다.


  2) Defaults > Python

  3) Environment Variables에 환경변수를 추가한다.

     key : TF_CPP_MIN_LOG_LEVEL

     value : 2

  4) 기존 run 환경을 없애고 다시 만들어서 실행한다.


   # 참고 (코드 레벨에서 없애기)

     import os

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



# 참고

https://stackoverflow.com/questions/47068709/your-cpu-supports-instructions-that-this-tensorflow-binary-was-not-compiled-to-u

Posted by citrine