for step in range(NUM_STEPS):
    if step % LOG_PERIOD == 0:
        train_acc, train_summ = sess.run([accuracy, training_summary],
            feed_dict={images: training_set.images, labels: training_set.
            labels})
Logging training and validation loss in tensorboard