jax.tree_util.tree_structure#

jax.tree_util.tree_structure(tree, is_leaf=None)[source]#

Gets the treedef for a pytree.

Parameters
Return type

PyTreeDef