I am new to Pytorch and have this question.
train_loader = DataLoader(train_set, batch_size=64, shuffle=True)
I am curious about how loader loads the dataset. Does it load everything from disk to RAM, shuffle it and then extract the batches from RAM to GPU while training? or Does it shuffle the dataset in memory and store it back to the disk and extract batches from it?