成功解決AttributeError: module 'tensorflow' has no attribute 'histogram_summary'

 

解決問題

AttributeError: module 'tensorflow' has no attribute 'histogram_summary'

 

解決方法

因爲'tensorflow版本升級問題,調用方法發生了改變,注意,需要修改多處!
只需要將
histogram_summary
修改爲
tf.summary.histogram

哈哈,大功告成!

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章