Python **StreamExecutor设备(0):主机,Tensorflow中的默认版本**

Python **StreamExecutor设备(0):主机,Tensorflow中的默认版本**,python,tensorflow,machine-learning,deep-learning,Python,Tensorflow,Machine Learning,Deep Learning,我正试图在本地计算机上执行tensorflow脚本。但出现以下警告。如果有人能够指定此警告的常见原因,这将非常有用 2020-10-26 14:04:34.690753: 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 in

我正试图在本地计算机上执行tensorflow脚本。但出现以下警告。如果有人能够指定此警告的常见原因,这将非常有用

2020-10-26 14:04:34.690753: 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.
2020-10-26 14:04:34.707717: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7fadab4339f0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-10-26 14:04:34.707751: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
我尝试跟踪我的代码,这一行给出了错误:

model = load_model(MODEL_PATH)
我使用

from keras.models import load_model

出现上述警告的主要原因是
Tensorflow
库未针对您的特定体系结构进行优化,
Tensorflow
最初是在不同的体系结构计算机上编译的。
您可以忽略此警告,但无法从库中获得最大性能

要修复此警告并获得最佳性能,您需要在计算机上构建
Tensorflow

您可以按照文档从源代码为Linux和macOSWindows构建Tensorflow