May you provide an example? I am trying to use partial_dataloaders with images but I am getting TypeError: default_collate: batch must contain tensors, numpy arrays, numbers, dicts or lists; found <class 'fastai2.vision.core.PILImage'>
The new (v2) API for dataloaders has a n argument to limit the size to n samples; see Data core | fastai
If I understood correctly the implementation, it selects a different set each time.
It works on DataBlock and indeed it uses only a subset of the dataset during training. Code example: