安装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 官网,从源码安装。

原文地址:https://www.cnblogs.com/theWinter/p/8244685.html