---
title: "ClikaRT::ops::tile"
sidebar_label: "tile"
description: "repeat that also accepts FEWER counts than the rank; missing leading entries default to 1. Counts are literals or 0-D integer Tensors (a tensor count traces symbolically). Copies."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--function">function</span>

## tile() {#tile}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`tile`**([`Tensor`](../Tensor.md) `input`, [`ClikaRT::Span`](../Span.md)`<const` [`ScalarOrTensor`](../ScalarOrTensor.md)`>` `dims`)

</div>

[`repeat`](./repeat.md#repeat) that also accepts FEWER counts than the rank; missing leading entries default to 1. Counts are literals or 0-D integer Tensors (a tensor count traces symbolically). Copies.

**Throws**

- `ClikaRT::Error`: (`INVALID_ARGUMENT`) when a count is negative (`code_name()` carries the reason).

**Returns:** a new tiled tensor.

<div class="api-declared">

Declared in `ClikaRT/compute/ops.h`, line 3397

</div>
