jax.tree_util.tree_map_with_path#

jax.tree_util.tree_map_with_path(f, tree, *rest, is_leaf=None)[原始碼]#

jax.tree.map_with_path() 的別名。

參數:
  • f (Callable[..., Any])

  • tree (Any)

  • rest (Any)

  • is_leaf (Callable[[Any], bool] | None | None)

回傳類型:

Any