I want to do modify the shape of the convolution layer so that it doesn’t just calculate the up and down direction. It should be something like the deformable convolution 1 but with less flexibility.
For example, I may want to implement a 2D Conv with shape like this:

directional_conv587×582 510 Bytes

Is that possible with built-in functions?