Hi,
I want to create a new module that implements a custom convolution layer that, given one input channel, produces two output channels using e.g. the following two filters:

Those two filters share the weights w0, …, w7 and the center weight is fixed to zero. Optimally, I want to use the filters together in one F.conv2d(inputs, filters) call.
Is this possible? If yes, how do I get the shared weights and the weights fixed to zero?
Thanks in advance!