dagModule
Defines a reusable graph component (module).
A module takes a list of GraphValue as inputs and returns a list of GraphValue as outputs. It can be instantiated inside a dag block using the module function.
Usage:
val myBlock = dagModule { inputs ->
val x = inputs[0]
val y = relu(x)
listOf(y)
}Content copied to clipboard