How to retrieve the sample indices of a mini-batch 
  
  
    Hello, 
I would like to know if there is a way to retrieve the indices of the samples in a minibatch: 
for data, target in train_loader:
    # Get the indices of the samples in 'data'
    ...

By sample index I mean the index of that particular sample in the whole original dataset. 
Thank you in advance for your help!