Solve the problem

Importingtensorflow after, When performing an operation, A red error occurred!

import tensorflow as tf

import numpy as np

Data reference

       Advanced Vector Extensions
<> (AVX,
also known as Sandy Bridge New Extensions)
Advanced vector expansion(AVX, Also known as the new extension of sandy Bridge) From Intel and Intel2008 year3 Microprocessor'sX86 Extensions of instruction set architecture, First time supported by Intel, In the first place2011 Quarterly and laterSoeBoE Bridge processor shipment.AMD With bulldozer processor shipping inQ3
2011.AVX New features available, New instructions and new coding scheme.AVX2 Expand most integer commands to256 position, It also introduces the fusion multiplication accumulation(FMA) operation.AVX-512 extendAVX reach512 Bit support using a newEVEX Prefix encoding proposed by Intel2013 year7 month, First support for Intel and knight landing processor, stay2016 shipment.

import os os.environ["TF_CPP_MIN_LOG_LEVEL"]='1' # This is the default display level, Show all information
os.environ["TF_CPP_MIN_LOG_LEVEL"]='2' # Display only warning and Error
os.environ["TF_CPP_MIN_LOG_LEVEL"]='3' # Display only Error
Thinking analysis

  Refer to comments and explanations of netizens: This means that, What you downloadedTensorFlow toolow 了, No compatibility at allAVX comeCompile. If you download the source code on this computer againcompile, Can supportAVX. In fact, your computer supportsAVX Of, Just compiledTensorFlow I won't support it.

Please refer to and understand if the analysis is correct

1, First netizen Someone else compiled it


2, Second netizen


Terms of settlement

Write at top line

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