title: how to read batches in one hdf5 data file for training?
body: <p>I have a hdf5 training dataset with size <code>(21760, 1, 33, 33)</code>. <code>21760</code> is the whole number of training samples. I want to use the mini-batch training data with the size <code>128</code> to train the network. </p>
  
  <p>I want to ask:</p>
  
  <p>How to feed <code>128</code> mini-batch training data from the whole dataset with tensorflow each time?</p>