title: TensorFlow - validate accuracy with batch data
body: <p>As the tutorials said, after every certain steps, I need to use 'validation' dataset to validate the accuracy of the model by now, and use 'test' dataset to test the accuracy finally.</p>
  
  <p>example code:</p>
  
  <pre><code>correct_prediction = tf.equal(tf.argmax(y, 1), tf.argmax(y_, 1))
  accuracy = tf.reduce_mean(tf.cast(correct_prediction, tf.float32))
  
  validate_acc = sess.run(accuracy, feed_dict=validate_feed)
  </code></pre>
  
  <p>But I consider its too big for my device, OOM maybe occur.</p>
  
  <p>How to feed the method'accuracy' with batch of validate_feed and get the total 'validate_acc'?</p>
  
  <p>(if i make a iterator from dataset, how can i feed next_batch into 'accuracy' method?)</p>
  
  <p>Thank you everyone for help!</p>