当前位置: 首页 > 工具软件 > MKL-DNN > 使用案例 >

This TensorFlow binary is optimized with Intel(R) MKL-DNN to use the following CPU:AVX AVX2

汝志
2023-12-01

tensorflow跑程序一直遇到这个问题:

2019-12-05 21:15:50.320504: I tensorflow/core/platform/cpu_feature_guard.cc:145] This TensorFlow binary is optimized with Intel(R) MKL-DNN to use the following CPU instructions in performance critical operations:  AVX AVX2 To enable them in non-MKL-DNN op

之前遇到这个问题 查了好久没有解决,今天终于解决了。

方法如下:

import os

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

 

 类似资料: