當(dāng)前位置:
首頁 >
tensorflow常见问题
發(fā)布時(shí)間:2025/10/17
40
豆豆
生活随笔
收集整理的這篇文章主要介紹了
tensorflow常见问题
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
No module named ‘‘a(chǎn)ssign’’
因?yàn)?.0版本不支持1.0版本的一些功能
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
報(bào)錯(cuò): The tensorflow library wasn’t compiled, but these are available on your machine and could speed up CPU computation
報(bào)錯(cuò)僅僅是告知可以通過下載和修改源碼提高運(yùn)行速度
通過在python文件中添加如下兩行代碼,設(shè)置TensorFlow日志輸出級(jí)別
import os
os.environ[“TF_CPP_MIN_LOG_LEVEL”]=‘2’
總結(jié)
以上是生活随笔為你收集整理的tensorflow常见问题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MAC版Pycharm主题——WarmC
- 下一篇: Mac git clone速度太慢