unpack_vectors#

t3toolbox.backend.ut3_operations.unpack_vectors(packed_vectors, unpacking_shape)#
def unpack_vectors(
        packed_vectors:  NDArray,            # shape=(d,)+stack_shape+(N,)
        unpacking_shape: typ.Sequence[int],  # (N0,...,N(d-1))
) -> typ.Tuple[NDArray, ...]:                # len=d, ith elm_shape=stack_shape+(Ni,)

Slice a packed supercore-shaped tensor back into a tuple of (ragged-length) vectors.

Parameters:
  • packed_vectors (NDArray)

  • unpacking_shape (t3toolbox.backend.common.typ.Sequence[int])

Return type:

t3toolbox.backend.common.typ.Tuple[NDArray, Ellipsis]