I am experimenting with pytorch and did not find a doc description of what the mentioned attributes do/constitute for. I printed the output so I know the first returns an object that encompasses all the data and the second somehow returns all labels. Does anyone know what exactly they do? Thanks!
loader.dataset returns the Dataset object you passed to the Dataloader. loader.dataset.target then accesses the internal target attribute of your dataset. Check how your dataset is defined and how target is created to understand its content as this attribute won’t be available in all datasets.