In PyTorch, a dataloader cursor is used to iterate over the data during training. The cursor keeps track of the current position within the dataset, and is used to retrieve the next batch of data for training. When training across multiple epochs, the cursor should reset to the beginning of the dataset after each epoch. This allows the model to see the entire dataset multiple times during training, which can help to improve the model's performance.
How do PyTorch DataLoader
reset the data cursor across epochs? Does it guarantee the reset from the beginning of the dataset
?