For a Project I am using the Sparsity-Invariant Convolution which is implemented in a class. The dilation rate is an input into this class, so would have to be set when initialized.
Within a Model-Block, I want to use this convolution 3 times in parallel, with differing dilation rates. Is it possible to lock the weights between these 3 convolutions so they share the same weights.
Yes, weight sharing is possible and a simple approach would be to use the functional API by defining the filters and bias as nn.Parameters and apply them via F.conv2d using the different dilation rates.