That’s correct in the default use case. However, you could use a BatchSampler
, which would allow you to get all indices of the current batch in the __getitem__
and apply your resizing logic as described e.g. here.
1 Like