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:
Returns:
IndexList
: The output shape.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!