combined_summary = tf.Summary()
for i in range(10000):
    _, image_summary = sess.run([train_op, image_summary_t])
combined_summary.MergeFromString(image_summary)
if i % 10 == 0:
    summary_writer.add_summary(combined_summary)
combined_summary = tf.Summary()
How to use image_summary to view images from different batches in Tensorflow?