Add a summary of accuracy of the whole train/test dataset in Tensorflow
<p>I am trying to use Tensorboard to visualize my training procedure. My purpose is, when every epoch completed, I would like to test the network's accuracy using the whole validation dataset, and store this accuracy result into a summary file, so that I can visualize it in Tensorboard.</p>

<p>I know Tensorflow has <code>summary_op</code> to do it, however it seems only work for one batch when running the code <code>sess.run(summary_op)</code>. I need to calculate the accuracy for the <strong>whole</strong> dataset. How?</p>

<p>Is there any example to do it?</p>