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

 

解决问题

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

 

解决方法

因为'tensorflow版本升级问题,调用方法发生了改变,注意,需要修改多处!
只需要将
histogram_summary
修改为
tf.summary.histogram

哈哈,大功告成!

 

 

 

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