Function to define spline as Torch layer
layer_spline_torch(
P,
units = 1L,
name,
trainable = TRUE,
kernel_initializer = "glorot_uniform",
...
)
Torch spline layer
matrix; penalty matrix
integer; number of output units
string; string defining the layer's name
logical; whether layer is trainable
initializer; for basis coefficients
value used for constant kernel initializer