hunkim / PyTorchZeroToAll

Simple PyTorch Tutorials Zero to ALL!
http://bit.ly/PyTorchZeroAll
3.89k stars 1.2k forks source link

With 2 epochs, the data are loaded twice, why? #40

Closed jianlianggao closed 5 years ago

jianlianggao commented 5 years ago

Hi Dr. Kim,

Why do we need to load data twice into torch tensors with 2 epochs? What the difference of the epoch for dataloader and the epoch for neural network? Sorry, maybe my questions are silly, as I only started learning neural network and PyTorch 2 days ago.

Many thanks, Best wishes, Jianliang

jianlianggao commented 5 years ago

After reading another tutorial, I understand now. Thank you very much anyway.