Skip to main content

Mojo function

concat_shape

concat_shape[inputs_layout: Layout, //, input_type: DType, single_thread_blocking_override: Bool](input_bufs: List[LayoutTensor[input_type, inputs_layout, MutableAnyOrigin]], axis: Int) -> IndexList[inputs_layout.rank()]

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

Parameters:

  • inputs_layout (Layout): Input layout 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?