Spline Interpolation on 1D arrays

Hi everyone. I’m trying to replace a scipy.resample() call in my code with an equivalent in pytorch. My code just takes a time series trace and can upsamples it using scipy.signal.resample currently.

upsample_rate = 10
length = 100
trace = np.random.rand(length)
trace_upsampled = signal.resample(trace,length*upsample_rate)

I need to carry out this operation over multiple traces at a time. Is there an equivalent in torch? I assume it would involve some kind of fast fourier transform, but the nn.interpolate functions all seem linear to me.

Thanks!