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