Is it possible to send a Dataset CPU multiple indices at once?

Right now, __getitem__ implements 1 index at a time. Is it possible to have the DataLoader feed it multiple indices for retrieval at a time?

You could use a BatchSampler as described here.