aleemsidra:

how can I check the data being loaded in train_loader and test_loader?


Not sure if I understand the question. But, while you do iteration over the train_loader, you can get the data from dataloader. Since dataloader doesn’t have __getitem__ function, it’s not possible to do indexing like DFU_Dataset[0].