How to create 3D custom dataloader

You can build a custom dataloader, if you plan to store the data in GPU or CPU RAM. And then just create an index that you can shuffle and use to get the batches. Here is an example: