Solved by kowshik_thopalli in post #2 
              
              
                ok.  I solved this issue with the following. 
Leaving it here for others 

from torch.utils.data import Dataset
class my_subset(Dataset):
    r"""
    Subset of a dataset at specified indices.

    Arguments:
        dataset (Dataset): The whole Dataset
        indices (sequence): Indices in the who…