运行TensorFlow出现The TensorFlow library wasn‘t compiled to use FMA instructions)代码
生活随笔
收集整理的這篇文章主要介紹了
运行TensorFlow出现The TensorFlow library wasn‘t compiled to use FMA instructions)代码
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
TensorFlow出錯點(2)(The TensorFlow library wasn't compiled to use FMA instructions)
- 錯誤提示:
- 解決措施:
錯誤提示:
摘取錯誤編碼:
The TensorFlow library wasn’t compiled to use FMA instructions
網上搜了下,也有可能會出現
The TensorFlow library wasn’t compiled to use SSE instructions
只要是用的是TensorFlow-CPU版本都會出現這個警告,意思是TensorFlow庫沒有編譯,不能使用SSE,FMA等指令,但是他們可以用來加速你的CPU計算,這只影響CPU如果你使用的是GPU版本的tensorflow那么在GPU上的所有操作都不會受益于SSE指令。并不影響其他操作。如果想要這個警告不出現:
解決措施:
下面展示一些 代碼片。
import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' import tensorflow as tf就可以了。
總結
以上是生活随笔為你收集整理的运行TensorFlow出现The TensorFlow library wasn‘t compiled to use FMA instructions)代码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 为什么springcloud值得我们学习
- 下一篇: 2019电赛----模拟电磁曲射炮