【发布时间】:2018-12-28 15:28:27
【问题描述】:
我用 Virtualenv 成功安装了 Tensorflow。但是,当我运行它时,我收到一个关于未使用 AVX2 FMA 的警告:
(tensorflow) MacBook-Pro-van-Niels:Tensorflow NielsRogge$ python
Python 2.7.10 (default, Jul 15 2017, 17:16:57)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
2018-07-20 12:00:37.904867: I
tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports
instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
>>> print(sess.run(hello))
Hello, TensorFlow!
我可能必须在我的虚拟环境中运行以下命令:
pip install --ignore-installed --upgrade "Download URL"
但是,我不确定必须使用来自 this website 的下载 URL。 正如您在上面的代码 sn-p 中看到的,我有 Python 2.7.10 和 GCC 4.2.1。我有一台带有the following specs 的Macbook Pro。我的操作系统是 Mac OS High Sierra 10.13。我有 Python 版本 2.7.10,而在网站上需要 Python 2.7.15,这是一个问题吗?
【问题讨论】:
-
我不认为这是一个警告,只是提醒您通过适当的构建可能会获得更好的结果。
标签: python tensorflow