title: How can I resize a PyTorch tensor with a sliding window?
body: <p>I have a tensor with size: <code>torch.Size([118160, 1])</code>. What I want to do is split it up into n tensors with 100 elements each, sliding by 50 elements at a time. What's the best way to achieve this with PyTorch?</p>