Hi,
I have a tensor with dimension [1, 1, 4, 6] like this:
a = torch.tensor([[[ 1,  2,  3,  4,  5,  6],
                   [ 7,  8,  9, 10, 11, 12],
                   [13, 14, 15, 16, 17, 18],
                   [19, 20, 21, 22, 23, 24]]])

I want to change it to a tensor like this:
[[ [[1, 2],
    [7, 8]],

   [[3, 4],
    [9, 10]],

   [[5, 6],
    [11, 12]],

   [[13, 14],
    [19, 20]],

   [[15, 16],
    [21, 22]],

   [[17, 18],
    [23, 24]] ]]
   

Is it possible?
if we use this code:
print(a.view(1, 6, 2, 2))

the result would be as bellow that is not what I need:
tensor([[[[ 1,  2],
          [ 3,  4]],

         [[ 5,  6],
          [ 7,  8]],

         [[ 9, 10],
          [11, 12]],

         [[13, 14],
          [15, 16]],

         [[17, 18],
          [19, 20]],

         [[21, 22],
          [23, 24]]]])

Is there any idea to have such result?
Thanks