The dataloader object might return multiple values as it’s calling into Dataset.__getitem__ to create the batch.
For a “standard” classification use case, your would return a data and target batch, so the first output would correspond to your desired shape.