Constructor function for layers. You shouldn't generally need to use this. Instead, consider
using individual functions such as dense.
new_layer(cl, ...)Character string specifying class of layer (e.g. "ruta_layer_dense"), which
will be used to call the corresponding methods
Other parameters (usually units, activation)
A construct with class "ruta_layer"
my_layer <- new_layer("dense", 30, "tanh")
# Equivalent:
my_layer <- dense(30, "tanh")[[1]]