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