How to do 1d interpolation, like np.interp?

So far I’ve only found references to torch.nn.functional.interpolate when searching for interpolation functions, but that is intended for interpolation of structured data. Is there something like numpy.interp or scipy.interpolate.interp1d available where I can specify x,y points and then given some x get a corresponding interpolated y value?

It appears no such function is implemented as of yet: Interpolation tracking issue · Issue #50341 · pytorch/pytorch · GitHub