IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo function

concat_from_list_shape_impl

def concat_from_list_shape_impl[dtype: DType, rank: Int](axis0: Int, inputs: List[ManagedTensorSlice[IOSpec[_, _].Input, static_spec=_get_unknown_tensor_spec[dtype, rank]()]]) -> IndexList[rank]

Computes the concatenated output shape for a variadic list of input tensors.

Parameters:

  • ​dtype (DType): Element type of the input tensors.
  • ​rank (Int): Number of dimensions in each input tensor.

Args:

Returns:

IndexList[rank]: The output shape with the concat axis dimension summed across all inputs.