Is there a difference between data.train_dl.y and data.train_ds.y?

Is there a difference between what data.train_dl.y and data.train_ds.y return?

In particular, I was wondering if data.train_dl.y, with shuffling = True, will return the y in the order of the shuffled data?

1 Like

They’re the same. train_dl just delegates anything it doesn’t understand down to its dataset.

4 Likes