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