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 module
concat
Implements tensor concatenation along a specified axis for CPU and GPU targets.
comptime values
elementwise_epilogue_type
comptime elementwise_epilogue_type = def[c_type: DType, rank: Int, width: SIMDLength = SIMDLength(1), *, alignment: Int = Int(1)](IndexList[rank], SIMD[c_type, width]) capturing thin -> None
Functions
-
concat: Concatenatesinputsalongaxisintooutputfor the giventarget. -
concat_shape: Compute the output shape of apadoperation, and assert the inputs are compatible. -
fused_concat: Concatenates inputs produced byinput_fnalongaxisintooutput, applyingoutput_0_fnto each element. -
memcpy_or_fuse: Copiesnbytes fromsrc_dataintodest_dataatout_byte_offset, applyingepilogue_fnelementwise when present. -
preferred_simd_width: SIMD scalar count for fused GPU concat vectorization.