ptrblck:

You could disable automatic batching as described here and use a  BatchSampler .
Let me know, if that works for you.


Well conceptually yes, But practically I just can’t get my hands around the documentation.
If I set both batchsampler and batchsize to none (in order to turn off automatic batching) how does the system knows my batchsize? how does the __getitem__ gets triggered?