- fit_generator . dataloader, , . : get_next_batch_data , , ..
class BatchedLoader():
def __init__(self):
self.possible_indices = [0,1,2,...N]
self.cur_it = 0
self.cur_epoch = 0
def get_batch_indices(self):
batch_indices = self.possible_indices [cur_it : cur_it + batchsize]
def get_next_batch_data(self):