How can I translate the numpy implementation to torch?
https://numpy.org/doc/stable/reference/generated/numpy.interp.html
https://pytorch.org/docs/stable/nn.functional.html#interpolate
The torch version doesn’t seem to take in discrete data points.