I have seen two types of for loops that go through the dataloader.




for batch_idx, (data,target) in enumerate(train_loader):
     train...





for data,target in train_loader:
     train...

Is there a difference between those two? If so, what is it?
Thanks