Solved by ptrblck in post #2 
              
              
                random_split returns two Datasets with non-overlapping indices, which were drawn randomly based on the passed lengths, while SubsetRandomSampler accepts the indices directly. 
Both can be used for different use cases. 
E.g. if you want to run a training epoch with certain samples only (e.g. from a s…