屏蔽tensorflow运行警告

【Warning】
The TensorFlow library wasn’t compiled to use SSE/SSE2/SSE3/SSE4 instructions, but these are available on your machine and could speed up CPU computations.
The TensorFlow library wasn’t compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.

上面是说有些库支持SSE和AVX加速编译,但是你的电脑没有启用这些功能。
【Solution】

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

你可能感兴趣的:(tensorflow笔记)