View source on GitHub |
Tags a value as a variable.
oryx.core.state.variable(
value, *, name: str, key=None, mode: str = 'strict'
)
variable
should be used to initialize state in stateful functions.
Typically, variable
will be called with a value downstream of an
initialization key. The init
transformation will then pull all values tagged
as variables in a function body and store them in a Module
.
Returns | |
---|---|
The value that was passed in. |