jax.tree_util.tree_flatten# jax.tree_util.tree_flatten(tree, is_leaf=None)[source]# jax.tree.flatten() 的别名。 参数: tree (Any) is_leaf (Callable[[Any], bool] | None | None) 返回值: tuple[list[Leaf], PyTreeDef]