Pytorch dataloader reading order


I wonder the dataloader.

Dataset Folder

| |____File1
| |_____File2
| |_____File3

for inputs, labels in tqdm(test_dataloader):

The Files(1~3) will be loaded into inputs, labels.

How about the order?

The Files will be loaded, first order:File1, and second order: File2, and Third order: File3, … ?

So, can I map the loaded data to real file on memery by order?
For example, This loaded data is from File3 becuase of third iteration

or any idea?

1 Like