jax.tree_util.tree_flatten# jax.tree_util.tree_flatten(tree, is_leaf=None)[source]# Alias of jax.tree.flatten(). Parameters: tree (Any) is_leaf (Callable[[Any], bool] | None | None) Return type: tuple[list[Leaf], PyTreeDef]