MacBook Air: OSX El Capitan
当我在终端中运行TensorFlow代码(python 3 tfpractice.py
)时,我需要等待比正常更长的时间才能得到输出,接着会出现以下错误信息:
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
我不知道该如何解决这个问题。我希望通过pip3安装让TensorFlow正常工作。所以我按照路径找到了:tensorflow/core/platform/cpu_feature_guard
我需要在这里编辑代码吗?还是有其他方法可以使TensorFlow编译使用这些指令?
我使用sudo pip3 install tensorflow
安装了TensorFlow。