Solved by ptrblck in post #2 
              
              
                The SequantialSampler samples your data sequentially in the same order. 
To use a sliding window, I would create an own Dataset and use the __getitem__ method to get the sliding window. 
Here is a small example (untested): 
class MyDataset(Dataset):
    def __init__(self, data, window):
        self…