How would the batching work with a namedtuple?
Wouldn’t the sampler be required to create the batch as a namedtuple, so that you could index it inside the DataLoader loop as e.g.:
for batch in loader:
    x, y = batch.data, batch.target