警告:
The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
在项目前添加这样一段代码:
import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
import tensorflow as tf
这是一个警告,并不影响tensorflow运行,上面这段代码表示忽略这个警告,和tensorflow的硬件加速有关。