I made a mistake. That’s is not a toeplitz matrix.
I am looking for  tensorflow equivalent of below method in pytorch



x = torch.arange(1., 8)
x
tensor([ 1.,  2.,  3.,  4.,  5.,  6.,  7.])




x.unfold(0, 2, 1)
tensor([[ 1.,  2.],
[ 2.,  3.],
[ 3.,  4.],
[ 4.,  5.],
[ 5.,  6.],
[ 6.,  7.]])




x.unfold(0, 2, 2)
tensor([[ 1.,  2.],
[ 3.,  4.],
[ 5.,  6.]])