TensorFlow 二进制文件未编译

TensorFlow binary was not compiled

我是运行这个代码在this tutorial.

输出:

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

[INFO] approx. FPS: 10, assume reach to 30

为什么代码是运行就CPU?

我有一个 GPU,我使用 tensorflow-gpu 安装了 TensorFlow。

如果你有 GPU,你应该不会关心它。您可以使用此

忽略警告
import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
import tensorflow as tf

如果您想了解更多信息,可以阅读: