2021-01-06 21:41:41.293904: I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not set
2021-01-06 21:41:41.294174: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2021-01-06 21:41:41.293904:I tensorflow / compiler / jit / xla_cpu_device.cc:41]未创建XLA设备,未设置tf_xla_enable_xla_devices
2021-01-06 21:41:41.294174:我tensorflow / core / platform / cpu_feature_guard.cc:142]此TensorFlow二进制文件已通过oneAPI深度神经网络库(oneDNN)进行了优化,以在性能至关重要的操作中使用以下CPU指令: AVX2 FMA
要在其他操作中启用它们,请使用适当的编译器标志重建TensorFlow。
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
亲测有用
同问,求求了
我也是
这没有解决方法啊