I have an input tensor of shape (10,3,4,6). The 6 is the channel dimension. If I need to perform convolution (1D and 2D both) channel-wise ( each channel should have different weights and bias) using Pytorch, how can I implement it?
Please give me an example code
depth-wise convolution is what you need: