Solved by Pranavan_Theivendira in post #2 
              
              
                Hi, 
PyTorch Dataloaders are accessed as follows. 
for index, data enumerate(a_loader)

They do not support indexing. 
Thanks 
Regards 
Pranavan