Interpolating natural cubic splines. Includes batching, GPU support, support for missing values, evaluating derivatives of the spline, and backpropagation.
However, this results in an error due to the time tensor t not containing one-dimensional floating point values.
How would you recommend to reshape the dimensions here?
Unfortunately torchcubicspline isn't designed to handle two dimensions. It's only capable of interpolating problems of the form f(t) = x, where t is a scalar.
Hi Patrick,
first of all, thank you very much for creating this great library.
I've got a very basic question:
I want to interpolate over a 2D-grid. In SciPy, I run the following code:
Then, I can evaluate
interpol_function(X, Y)
at arbitraryX
andY
.I tried to match the dimensions to your "batch-length-channel" format, resulting in
However, this results in an error due to the time tensor
t
not containing one-dimensional floating point values. How would you recommend to reshape the dimensions here?