Applies B-spline interpolation to input control points (knots).
tfg.math.interpolation.bspline.interpolate( knots, positions, degree, cyclical, name=None )
In the following, A1 to An, and B1 to Bk are optional batch dimensions.
knots: A tensor with shape
[B1, ..., Bk, C]containing knot values, where
Cis the number of knots.
positions: Tensor with shape
[A1, .. An]. Positions must be between `[0, C
for non-cyclical and[0, C)
for cyclical splines, whereC
is the number of knots andD` is the spline degree.
intbetween 0 and 4, or an enumerated constant from the Degree class, which is the degree of the splines.
bool, whether the splines are cyclical.
name: A name for this op. Defaults to "bspline_interpolate".
A tensor of shape
[A1, ... An, B1, ..., Bk], which is the result of spline