IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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

tile

def tile[dtype: DType, type_repeats: DType](input: TileTensor[dtype, Engine=input.Engine, linear_idx_type=input.linear_idx_type], repeats: TileTensor[type_repeats, Engine=repeats.Engine, linear_idx_type=repeats.linear_idx_type], output: TileTensor[dtype, Engine=output.Engine, linear_idx_type=output.linear_idx_type])

Tiles input into output on the CPU.

def tile[dtype: DType, type_repeats: DType](input: TileTensor[dtype, Engine=input.Engine, linear_idx_type=input.linear_idx_type], repeats: TileTensor[type_repeats, Engine=repeats.Engine, linear_idx_type=repeats.linear_idx_type], output: TileTensor[dtype, Engine=output.Engine, linear_idx_type=output.linear_idx_type], ctx: DeviceContext)

Tiles input into output on CPU or GPU.

Was this page helpful?