Is it possible to apply pooling across the channel dimension of the input tensor?
I have an input tensor of the shape (32, 256, 256, 256). In this tensor shape, 32 is the batch size. second 256 is the number of channels in the given image of size 256 X 256.
I want to do pooling in order to convert the tensor into the shape(32, 32, 256, 256). In PyTorch, if I try to apply the pooling then the last two dimensions of the shape, related to the image, are changing, but not the dimension related to the channel.
Is it possible to apply pooling on the input tensor to obtain the output tensor? If not possible, what are the recommended options for me to convert the input tensor into the output tensor?
Topic pooling image-preprocessing reshape pytorch
Category Data Science