opto.trainer.loader¶
DataLoader ¶
Initialize the data loader
Args: dataset: the dataset to load (a dict of inputs and infos) batch_size: the number of samples to load in each batch randomize: whether to randomize the dataset ordering before loading; if False, the dataset will be loaded in the order it is provided (replacement and shuffle be ignored) replacement: whether to sample with replacement shuffle: whether to shuffle the dataset after each epoch