AI/DeepLearning

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

soccerda 2020. 6. 2. 12:54
반응형

텐서플로우를 설치하고 실행하면 

 

I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2

 

메시지가 보일수 있다.

 

무시해도 상관지만 로그 레벨을 낮춰서 안 보이게 할 수 있다.

 

소스 레벨 설정 변경

# Just disables the warning, doesn't enable AVX/FMA
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'

레벨은 1일 경우 INFO, 2일 경우 INFO, WARNING,  3일 경우에는 INFO, WARRING, ERROR 메시지가 출력안되니다.

 

반응형