成功解决AttributeError: module 'tensorflow' has no attribute 'histogram_summary'
生活随笔
收集整理的這篇文章主要介紹了
成功解决AttributeError: module 'tensorflow' has no attribute 'histogram_summary'
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
成功解決AttributeError: module 'tensorflow' has no attribute 'histogram_summary'
?
?
目錄
解決問題
解決思路
解決方法
?
?
?
解決問題
AttributeError: module 'tensorflow' has no attribute 'histogram_summary'
?
?
解決思路
屬性錯誤:模塊“tensorflow”沒有屬性“histogram_summary”
?
?
解決方法
因為'tensorflow版本升級問題,調用方法發生了改變,注意,需要修改多處!
只需要將
histogram_summary
修改為
tf.summary.histogram
哈哈,大功告成!
?
?
?
總結
以上是生活随笔為你收集整理的成功解决AttributeError: module 'tensorflow' has no attribute 'histogram_summary'的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: TF之LiR:利用TF自定义一个线性分类
- 下一篇: Py之textgenrnn:textge