= torch.randn(4, 1000)
x
# test seq_len > patch len == stride
= create_patch(x, patch_len=505, stride=500, constant_pad=False)
xb = create_patch(x, patch_len=500, stride=500, constant_pad=True)
xb_rep
x.shape, xb.shape, xb_rep.shape#xb_rep_short = create_patch(x_short, patch_en=502, stride=500, replication_pad=False)b
(torch.Size([4, 1000]), torch.Size([4, 1, 505]), torch.Size([4, 2, 500]))