1# shuffle_batch will shuffle the data in each minibatch
2tf.train.shuffle_batch([data, labels], batch_size=batch_size,
3 capacity=capacity,
4 num_threads=threads,
5 allow_smaller_final_batch=True)
6'''
7 batch() will pull minibatches in the order it reads from the
8 tensors
9'''
10tf.train.batch([data, labels], batch_size=batch_size,
11 capacity=capacity,
12 num_threads=threads,
13 allow_smaller_final_batch=True)
14