Assume your data examples are already read to a python's variable and you would like to read it n times, in batches of given size:
import numpy as np
import tensorflow as tf
data = np.array([1, 2, 3, 4, 5])
n = 4
To merge data in batches, possibly with random shuffling, you can use tf.train.b...