Custom Kernel Pytorch. dilation controls the spacing between the kernel points; also kn