Adding index to the SHVN dataset

Hi, there could anyone help me create a data loader for the SVHN dataset with an index in it, please.

I’m not sure I understand the question correctly, since the index will be used in the __getitem__ of the dataset. In case you would like to return the index with the processed data sample and target, you could write a custom Dataset and return all three values in them.
In your custom Dataset you could just index the SVHN dataset using the index.