python3 ,AttributeError: module 'tensorflow' has no attribute 'merge_summary'

error:tensorflow有些方法属性被改了,

self.summary_writer = tf.train.SummaryWriter(summary_dir)
改为:summary.FileWriter(name)

self.summaries = tf.merge_summary([
tf.scalar_summary("loss", self.loss)
])
改为:summary.merge(). summary.scalar()

concated = tf.concat(1, [indices, sparse_labels])
改为:concated = tf.concat([indices, sparse_labels], 1)
还有许多类似的错误,自己遇到了再百度吧
    原文作者:lmengz
    原文地址: https://www.cnblogs.com/Lmengzi/p/9338627.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞