Hi @ptrblck, the issue is resolved. It is working for me also. I was finding the length using:
print(len(train_set.dataset)) 

which gives the length of the parent dataset. I wanted to convert the object of Subset class to Dataset object.
Is there a way to convert the Subset to Dataset object?