I am training a very simple net on CIFAR10 and I want to get the number of examples from the loader,
trainset = torchvision.datasets.CIFAR10(root='./data', train=True, download=True, transform=transform)
trainloader = torch.utils.data.DataLoader(trainset, batch_size=4, shuffle=True, num_workers=2)

Is there a way to use trainloader.number_of_examples or something similar?