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, Storage=input.Storage, linear_idx_type=input.linear_idx_type], repeats: TileTensor[type_repeats, Storage=repeats.Storage, linear_idx_type=repeats.linear_idx_type], output: TileTensor[dtype, Storage=output.Storage, linear_idx_type=output.linear_idx_type])

Implements the Tile operator from the ONNX spec. This behaves like Numpy tile, but without broadcast.

Parameters:

  • ​dtype (DType): Type of the input and output tensors.
  • ​type_repeats (DType): Type of the repeats tensor.

Args: