Hello all,
I would like to know how to share weights of dilated convolutional kernels. For example:
self.conv1 = nn.Conv2d(in_channels=2,out_channels=16,kernel_size=5, stride=1, padding=2, dilation=1)
self.conv2 = nn.Conv2d(in_channels=2,out_channels=16,kernel_size=5, stride=1, padding=2, dilation=2)
self.conv3 = nn.Conv2d(in_channels=2,out_channels=16,kernel_size=5, stride=1, padding=2, dilation=3)
self.conv4 = nn.Conv2d(in_channels=2,out_channels=16,kernel_size=5, stride=1, padding=2, dilation=4)

I would like to share weights between those convolutional layers.
Thanks!