The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your m

The TensorFlow library wasn't compiled to use SSE4.2 instructions, butthese are available on your machine and could speed up CPU computations.

问题分析:

这是一个告警,提示你在构建tensorflow时可以更快一点,不影响程序运行。

解决方案:

Winbdows:

import os

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

import tensorflow as tf

 

Linux:

TF_CPP_MIN_LOG_LEVEL=2.

 

 

TF_CPP_MIN_LOG_LEVEL 是设置日志级别的环境变量,设置1只过滤Info类日志,设置2过滤WARNING类日志,设置3过滤ERROR类日志。

猜你喜欢

转载自blog.csdn.net/wangbaoxing/article/details/79083434