The number of examples is present from the dataset, not the dataloader.
So you can get the number of examples by using len(trainset)
The number of examples is present from the dataset, not the dataloader.
So you can get the number of examples by using len(trainset)