Saying that I have a layer feature map output of the form (1,1,10,10) how can I transform it to (4,1,5,5), while keeping the spatial location as a kernel of 5x5 as mentioned in the image bellow and preserving the gradient ?

HisTrans.png903×396 3.89 KB

As you can see, the features are moved to form new inputs in the input channel.