python - 您的 CPU 支持未编译此 TensorFlow 二进制文件以使用的指令:AVX2 FMA
问题描述
我用 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"
但是,我不确定我必须从这个网站使用的下载 URL 。正如您在上面的代码片段中看到的,我有 Python 2.7.10 和 GCC 4.2.1。我有一台具有以下规格的 Macbook Pro 。我的操作系统是 Mac OS High Sierra 10.13。我有 Python 版本 2.7.10,而在网站上需要 Python 2.7.15,这是一个问题吗?
解决方案
它只是让您知道,如果优化编译,您的性能可以得到改善。为了使消息静音或添加额外的构建支持,您需要从源代码安装。请参阅此处,tensorflow.org/install/install_sources。
推荐阅读
- javascript - 如果用户输入了错误的 URL 并且未在 Next.js 中进行身份验证,则呈现 404 页面
- amazon-web-services - 通过 terraform 为 aws cloudtrail 实施“高级云事件选择器”
- jenkins - 闭包作为 Jenkins 共享库函数中的参数
- c - Clang 不链接 GTK3 和 Webkit2GTK 的依赖项
- wordpress - 本网站出现严重错误。请检查您的站点管理员电子邮件收件箱以获取说明未修复
- visual-studio-code - 带有选项卡的目录故障
- gzip - Deflate:顶级HCLEN的代码长度> 7位?
- javascript - 使用 React Hooks,当我将 prop 从父组件传递到子组件时,子组件中的 prop 未定义
- asp.net - ASP.NET 捆绑和缩小安全问题
- javascript - 更改不会影响地图功能并且不会显示:)