how to log validation loss and accuracy using tfslim
Is there any way that I can log the validaton loss and accuracy to tensorboard when using tf-slim? When I was using keras, the following code can do this for me: model.fit_generator(generator=train_gen(), validation_data=valid_gen(),...) Then the model will evaluate the validation loss and accuracy after each epoch, which is very convenient. But how to achieve this using tf-slim? The following steps are using primitive tensorflow, which is not what I want: with tf.Session() as sess: for step in range(100000): sess.run(train_op, feed_dict={X: X_train, y: y_train}) if n % batch_size * batches