Pytorch equilvalent for Fourier based upsampling like scipy.signal.resample

May be its too late, but I wrote a code for the same
The code can be found at My GitHub Code and also I wrote a small article for the same on PyTorch Discuss