Hi, I have a tensor A at size (B, C, W, H), where C=16. I want to reshape it to be tensor B at size of (B, 1, 4W, 4H). Here each pixel in tensor A (1 x 16 x 1 x 1) will be transferred into a (1 x 1 x 4 x 4) spatial block in B. And the relative location for each pixel in A will inherit to spatial blocks in B.
Is there a way to do this in PyTorch with view()? Thanks!