stacking#
Convert a Python tree of separate objects <-> one stacked object.
stack/unstack, tree_zip, apply_func_to_leaf_subtrees, and the basic
ragged/uniform twins. This is one of three distinct meanings of “stacking” in the library –
distinct from leading stack_shape batch axes on one object’s cores, and from the uniform
supercore representation (docs/batching_and_stacking.md).
Functions#
|
|
|
|
|
Checks if two trees (nested sequences) have the same structure. |
|
Apply a function to all "leafs" in a tree. |
|
Stack array-like nested tree structure. |
|
Unstack nested sequence of arrays along specificed array axes. |
|
Sum leafs of a tree of NDArrays along specified axes. |
|
Unstack stacked ragged array tuple into array-like tree |
Stack array-like tree of ragged array tuples into single ragged array tuple. |
|
|
Unstack stacked uniform array tuple into array-like tree |
Stack array-like tree of uniform array tuples into single ragged array tuple. |
|
|
Zips two trees with the same structure. |