In a case where my data fits in memory as numpy array, I realize that batching the data using getitem from the Dataset interface is much slower than when it is indexed manually with numpy.
I am sure it’s because the Dataloader build batches sample by sample by calling getitem to fetch each sample.
Is there any workaround to build batches faster while still using the standard Dataset / Dataloader interface ?