You can use your own collate_fn
to process the list of samples to form a batch.
The batch
argument is a list with all your samples. E.g. if you would like to return variable-sized data, have a look at this thread.
20 Likes