It’s hard to descript, so let’s see the example.  I get a tensor like below
[[[1,1],[1,1]],
[[2,2],[2,2]],
[[3,3],[3,3]],
[[4,4],[4,4]]]

the size is (4,2,2). I want to concat diffrent channel and convert it into a new tensor with size (1,4,4), but if using view it will like the left array, but I want to get the right format.
[[1,1,1,1],             [[1,1,2,2],
 [2,2,2,2],              [1,1,2,2],
 [3,3,3,3],              [3,3,4,4],
 [4,4,4,4]]              [3,3,4,4]]

Actually I would like a tensor whose size is (N,C,H,W) be converted into (N, C//4, H*2, W*2) in right format above format by using view instead using loop.
What can I do? really appreciate your help!