Skip to main content
Log in

Mojo function

concat_shape

concat_shape[input_rank: Int, input_type: DType, single_thread_blocking_override: Bool](input_bufs: List[NDBuffer[input_type, input_rank, MutableAnyOrigin]], axis: Int) -> Index[input_rank]

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

Parameters:

  • input_rank (Int): Input_rank 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[NDBuffer[input_type, input_rank, MutableAnyOrigin]]): The input tensors list.
  • axis (Int): The axis.

Returns:

The output shape.