module ‘tensorflow’ has no attribute ‘merge_all_summaries’

tf.train.SummaryWriter
改为:tf.summary.FileWriter
AttributeError: ‘module’ object has no attribute ‘summaries’
tf.merge_all_summaries()
改为:summary_op = tf.summary.merge_all()
AttributeError: ‘module’ object has no attribute ‘histogram_summary’
tf.histogram_summary()
改为:tf.summary.histogram()
tf.scalar_summary()
改为:tf.summary.scalar()
tf.image_summary()
改为:tf.summary.image()