I have the same question as Jabberwocky, and I have tried the method as you described. If define a large kernel and set corresponding position as zero, the calculation is eqal to the large kernel instead of 3x3 kernel. Apparently, dilated convolution in PyTorch is not completed in this way since its calculation is 3x3 exactly.