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)
还有许多类似的错误,自己遇到了再百度吧
posted @ 2018-07-19 21:47  lmengz  阅读(7686)  评论(0编辑  收藏  举报