This permutation should work:
x = torch.tensor([[[1,1],[1,1]],
                  [[2,2],[2,2]],
                  [[3,3],[3,3]],
                  [[4,4],[4,4]]])

print(x.view(2, 2, 2, 2).permute(0, 2, 1, 3).contiguous().view(1, 4, 4))
> tensor([[[1, 1, 2, 2],
           [1, 1, 2, 2],
           [3, 3, 4, 4],
           [3, 3, 4, 4]]])

Since you have repeated values, make sure that the values are indeed at the right position.