当前位置:首页 > 操作系统 > MacOs

The TensorFlow library wasn‘t compiled to use SSE instructions, but these are available on your mach

问题描述:

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

The TensorFlow library wasn‘t compiled to use SSE instructions, but these are available on your mach - 文章图片

问题解决:

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

在py文件头部加入以下内容:

<code>import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
import tensorflow as tf</code>

不在报错,问题解决!


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐