Dealing with large dataset without out of memory error

Usually you don’t need to load your complete dataset into the memory.
Using a DataLoader you will get mini batches containing several samples which are used for training.
Have a look at the Data loading tutorial for an introduction.