It returns the number of batches of data generated from DataLoader.
For instance: if the total samples in your dataset is 320 and you’ve selected batch_size as 32, len(data_loader) will be 10, if batch_size is 16 len(data_loader) is 20.
to keep it simple, len(data_loader) = ceil((no. of samples in dataset)/batchsize)