我正在使用pycharm进行编码,我成功下载了tensorflow。但它给了我警告:
The TensorFlow library wasn't compiled to use SSE4.2 instructions, but
these are available on your machine and could speed up CPU
computations.
The TensorFlow library wasn't compiled to use AVX instructions, but
these are available on your machine and could speed up CPU
computations.
The TensorFlow library wasn't compiled to use AVX2 instructions, but
these are available on your machine and could speed up CPU
computations.
The TensorFlow library wasn't compiled to use FMA instructions, but
these are available on your machine and could speed up CPU
computations.
我看到其他链接并没有解决我的问题。我试图再次通过Source安装tensorflow。我坚持建立pip包:
$ bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
我的电脑给了我错误:
ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
我使用mac并且我不熟悉Cpp所以不明白这意味着什么。 有人可以帮我解决这个问题吗?
答案 0 :(得分:1)
这些警告无关紧要,但您可以按bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-msse4.2 //tensorflow/tools/pip_package:build_pip_package
编译Tensorflow来禁用它们。