Skip to main content

Mojo function

concat_shape

concat_shape[input_origin: ImmutOrigin, InputLayoutType: TensorLayout, //, input_type: DType, single_thread_blocking_override: Bool](input_bufs: List[TileTensor[input_type, InputLayoutType, input_origin]], axis: Int) -> IndexList[InputLayoutType.rank]

Compute the output shape of a pad operation, and assert the inputs are compatible.

Parameters:

  • input_origin (ImmutOrigin): Origin of the input tensor.
  • InputLayoutType (TensorLayout): Layout type of the input tensor.
  • input_type (DType): Type of the input tensor.
  • single_thread_blocking_override (Bool): If True, then the operation is run synchronously using a single thread.

Args:

  • input_bufs (List): The input tensors list.
  • axis (Int): The axis.

Returns:

IndexList: The output shape.

Was this page helpful?