Im not really familirized with the prebuilt datasets.
For a general dataset,
the workload has to be allocated in the __getitem__ func.
This is the function which is called and parallelized by the dataloader.
As I aforementioned, it works only with cpu computations. Therefore any other transformation should be applied after the batch is conformed.