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)
还有许多类似的错误,自己遇到了再百度吧


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM