I would like to change the dilation during training mode. In other words, I’d like to share weights between two conv layers with different dilation. Take following sudo code for example:
init:
    conv1 = 3x3 kernel with dilation (1,1)
    conv1_dilation = conv1 with dilation (2,2)
forward(X1):
    R1 = conv1(X1)
    R2 = conv1_dilat(X1)
    return R1,R2

where conv1 and conv1_dilat have the same kernel size and value but different dilation.
Could anyone tell me how to implement this?