THNN/generic/SpatialConvolutionMM and THNN/generic/SpatialDilatedConvolution
It uses codes there. Dilated convolution is provided as a keyword argument in convXd http://pytorch.org/docs/nn.html#conv2d 29