For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
concat_shape_impl
def concat_shape_impl[Ins: TypeList[Ins.values], //](axis0: Int, inputs: TensorTuple[*Ins.values]) -> IndexList[Ins.values[0].rank]
Computes the concatenated output shape from the input tensor shapes.
Parameters:
- โIns (
TypeList[Ins.values]): Types of the input tensors, which must share a rank.
Args:
- โaxis0 (
Int): Axis along which to concatenate; negative values index from the last dimension. - โinputs (
TensorTuple[*Ins.values]): Input tensors to concatenate, all matching in shape except along the concat axis.
Returns:
IndexList[Ins.values[0].rank]: The output shape with the concat axis dimension summed across
all inputs.