【TensorFlow报错】AttributeError: module 'tensorflow' has no attribute 'merge_all_summaries'

报错提示:

cifar10_train.py : AttributeError: module 'tensorflow' has no attribute 'merge_all_summaries'

报错原因:Tensorflow版本冲突,merge_all_summaries方法已经改名

解决方案:执行如下修改

# 报错代码
summary_op = tf.merge_all_summaries()
    
# 改正代码
summary_op = tf.summary.merge_all()

已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 游动-白 设计师:白松林 返回首页