![]() |
A single-dispatch function used to tag values and the outputs of programs.
oryx.core.ppl.random_variable(
obj,
*,
name: Optional[str] = None
) -> oryx.core.ppl.LogProbFunction
Used in the notebooks
Used in the tutorials |
---|
random_variable
is a single-dispatch function that enables registering
custom types. Its default implementation is to tag input value with a name
and return it.
Args | |
---|---|
obj
|
A JAX type to be tagged.
name (str): A string name to tag input value, cannot be None .
|
Returns | |
---|---|
The input value. |