writer.add_summary(train_summ, step)
valid_acc, valid_summ = sess.run([accuracy, validation_summary], feed_dict=
    {images: validation_set.images, labels: validation_set.labels})
writer.add_summary(valid_summ, step)
Logging training and validation loss in tensorboard