Hello! I saw the following codes today in a LSTM/MNIST example:
train_loader = Data.DataLoader(dataset=train_data, batch_size=BATCH_SIZE, shuffle=True)

for epoch in range(EPOCH):
    for step, (x, y) in enumerate(train_loader):   # gives batch data
         ......

For these codes, how does the second for loop work (for plus a tuple)? What’s the structure of the DataLoader object here? The for loop also normalizes the MNIST data according to the tutorial? (reference: https://morvanzhou.github.io/tutorials/machine-learning/torch/4-02-RNN-classification/ 301) You may just provide a link here, thanks.