of

fun of(vararg layers: Layer): Functional
fun of(layers: List<Layer>): Functional

Creates the Functional model.

Return

the Functional model.

Parameters

layers

The layers to describe the model design. All connections between the layers must be established and form an acyclic directed graph. Layers could be ordered in free way.

NOTE: First layer should be input layer.