tensorflow常见问题
生活随笔
收集整理的這篇文章主要介紹了
tensorflow常见问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
No module named ‘‘assign’’
因為2.0版本不支持1.0版本的一些功能
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
報錯: The tensorflow library wasn’t compiled, but these are available on your machine and could speed up CPU computation
報錯僅僅是告知可以通過下載和修改源碼提高運行速度
通過在python文件中添加如下兩行代碼,設置TensorFlow日志輸出級別
import os
os.environ[“TF_CPP_MIN_LOG_LEVEL”]=‘2’
總結
以上是生活随笔為你收集整理的tensorflow常见问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MAC版Pycharm主题——WarmC
- 下一篇: Mac git clone速度太慢