unbind_state_vars#
- penzai.core.variables.unbind_state_vars(tree: Any, predicate: Callable[[StateVariable], bool] | None = None, freeze: Literal[False] = False) tuple[Any, tuple[StateVariable, ...]] [source]#
- penzai.core.variables.unbind_state_vars(tree: Any, predicate: Callable[[StateVariable], bool] | None = None, *, freeze: Literal[True]) tuple[Any, tuple[StateVariableValue, ...]]
Version of
unbind_variables
that only extractsStateVariable
s.