qimpy.mpi.all_gather_padded

all_gather_padded(send, sizes, group)

Gather send with possibly uneven dimension 0 sizes along group. Return the result as a single tensor with concatenated dimension 0, automatically handling uneven sizes when not supported by the backend.

Parameters:
  • send (Tensor)

  • sizes (ndarray)

  • group (ProcessGroup | None)

Return type:

Tensor