Hi,
I am facing difficulty in implementing a shift layer from shiftnet image inpainting paper.  the link for the paper is shiftnet image inpainting paper 5.
I want to perform cross-correlation operation in the third last layer of the U-Net type architecture given in this paper.

Screenshot from 2020-04-28 17-49-07940×635 58.1 KB

could someone please help me figure out how can I performs this shift operation in PyTorch?
Thanks in advance