For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo function
concat_shape
def concat_shape[input_origin: ImmutOrigin, InputLayoutType: TensorLayout, //, input_type: DType](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.
Args:
- βinput_bufs (
List[TileTensor[input_type, InputLayoutType, input_origin]]): The input tensors list. - βaxis (
Int): The axis.
Returns:
IndexList[InputLayoutType.rank]: The output shape.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!