首页 > 技术文章 > tensorflow输出提示Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2等

gaoyang2018 2018-03-30 15:17 原文

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

解决办法:

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

推荐阅读