title: how to feed data in batches TensorFlow CNN?
body: <p>Almost all examples on github or other blogs uses <code>mnist</code> dataset for demo. When I am trying to use same deep NN for my images data I encounter following problem. </p>
  
  <p>They use:</p>
  
  <pre><code>  batch_x, batch_y = mnist.train.next_batch(batch_size)
    # Run optimization op (backprop)
    sess.run(train_op, feed_dict={X: trainimg, Y: trainlabel, keep_prob: 0.8})
  </code></pre>
  
  <p><code>next_batch</code> method to feed data in batches. </p>
  
  <p>My question is:</p>
  
  <p>Do we have any similar method to feed data in batches? </p>