Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2

安装tensorflow遇到:Your CPU supports instructions that this TensorFlow binary was not compiled to use

 

为了提升CPU计算速度的。若你有支持cuda的GPU,则可以忽略这个问题,因为安装SSE4.1, SSE4.2, AVX, AVX2, FMA, 仅仅提升CPU的运算速度(大概有3倍)。

解决方法:

  1. 忽视警告,并屏蔽警告

开头输入如下:

import os

os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'

2.进 tensorflow 官网,从源码安装。

 

[已解决]Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2 原文出自[ 开心洋葱 ] 链接: http://www.75271.com/19920.html 來源:开心洋葱著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

 

Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2 2018-04-09 11:04:23.472874: I C:\tf_jenkins\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2 1.出现原因: windows 使用Tensorflow 出现 Traceback (most recent call last): File "mandelbrot.py", line 3, in from PIL import Image ModuleNotFoundError: No module named ‘PIL’ 后,安装 >pip install pillow ,问题出现。 警告说你的Tensorflow不能使用SSE4.1 SSE4.2 AVX AVX2 FMA这些指令集进行编译。 国内的博客没找到解决办法,最后在国外的文章中找到了解决办法。 2.解决办法: 因为通过pip安装的是manylinux1_X86这是一个通用版本,根据指令集不同,需要进行不同的编译。 附上github的链接:TensorFlow binaries supporting AVX, FMA, SSE etc. 下载相应版本,执行安装: pip install tensorflow-1.4.0-cp36-cp36m-win_amd64.whl 原文出自[ 开心洋葱 ] 链接: http://www.75271.com/19920.html 來源:开心洋葱著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

posted @ 2019-07-03 20:03  菜鸡一枚  阅读(194)  评论(0)    收藏  举报