tree_block_until_ready ====================== .. py:function:: t3toolbox.backend.common.tree_block_until_ready(tree) .. code-block:: python def tree_block_until_ready( tree: typ.Any, # any pytree: jax / numpy arrays, Python scalars, None, registered dataclasses ) -> None: Wait until every jax array in ``tree`` is computed: ``jax.block_until_ready(tree)`` when a leaf is a jax array; otherwise nothing (numpy is synchronous). jax dispatches asynchronously, so a host clock read right after a jax call measures the dispatch, not the work; a timer calls this at its boundaries. Eager only: a traced leaf has nothing to wait for.