问题描述
最近使用TensorFlow发现报出这个错误
pycharm报错
This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2 To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
原因分析:
是版本的问题吗???
可能或许不是版本的问题
解决方案:
import os
os.environ[‘TF_CPP_MIN_LOG_LEVEL’] = ‘2’
为了解决这个问题可以把这个它进行忽略
亲测可行。