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

警告:

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

在项目前添加这样一段代码:

[python]  view plain  copy
  1. import os  
  2. os.environ['TF_CPP_MIN_LOG_LEVEL']='2'  
  3. import tensorflow as tf  

这是一个警告,并不影响tensorflow运行,上面这段代码表示忽略这个警告,和tensorflow的硬件加速有关。

猜你喜欢

转载自blog.csdn.net/yongzhen150/article/details/80032003