Tensorflow 报错 The TensorFlow library wasn't compiled to use FMA instructions, ......

Tensorflow CPU版本的在代码运行时,会弹出警告

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

大致意思是,TF库没有编译,不能使用SSE,FMA等指令,但是他们可以用来加速你的CPU计算,这只影响CPU如果你使用的是GPU版本的tensorflow那么在GPU上的所有操作都不会受益于SSE指令。

所以并不影响运行,因此在代码头部添加两行代码将提示功能关闭即可。

import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
import tensorflow as tf

猜你喜欢

转载自www.cnblogs.com/ctgu/p/12682082.html