def _flow_index(self):
    self.reset()
    while 1:
        if (self.seed is not None):
            np.random.seed((self.seed + self.total_batches_seen))
        if (self.batch_index == 0):
            self._set_index_array()
        current_index = ((self.batch_index * self.batch_size) % self.n)
        if (self.n > (current_index + self.batch_size)):
            self.batch_index += 1
        else:
            self.batch_index = 0
        self.total_batches_seen += 1
        (yield self.index_array[current_index:(current_index + self.batch_size)])
def _flow_index(self):
    self.reset()
    while 1:
        if (self.seed is not None):
            np.random.seed((self.seed + self.total_batches_seen))
        if (self.batch_index == 0):
            self._set_index_array()
        current_index = ((self.batch_index * self.batch_size) % self.n)
        if (self.n > (current_index + self.batch_size)):
            self.batch_index += 1
        else:
            self.batch_index = 0
        self.total_batches_seen += 1
        (yield self.index_array[current_index:(current_index + self.batch_size)])