liesel.goose.engine.stack_for_multi#

liesel.goose.engine.stack_for_multi(chunks)[source]#

Combine identically structured pytrees to be used in multichain.

The function adds a new dimension (axis 0) to each leaf and stacks the leafs along the new axis.

Deprecated since version 0.1.0: Use the functions from liesel.goose.pytree instead.