title: How to do cubic spline interpolation and integration in Pytorch
body: <p>In Pytorch, is there cubic spline interpolation similar to <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.CubicSpline.html" rel="noreferrer">Scipy's</a>? Given 1D input tensors <code>x</code> and <code>y</code>, I want to interpolate through those points and evaluate them at <code>xs</code> to obtain <code>ys</code>. Also, I want an integrator function that finds <code>Ys</code>, the integral of the spline interpolation from <code>x[0]</code> to <code>xs</code>.</p>