for _ in range(10000):
    _, image_summary = sess.run([train_op, image_summary_t])
summary_writer.add_summary(image_summary)
How to use image_summary to view images from different batches in Tensorflow?