thanks a lot i confirm your answer by printing len(…)
en(trainloader) is the number of batches while len(train_loader.dataset) is the number of all training set which is equivalent to number of batches * batch size