---
title: "repeat"
sidebar_label: "repeat"
description: "Kotlin binding reference: repeat."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[repeat](repeat.md)

# repeat

[common]\
fun [repeat](repeat.md)(input: [Tensor](../Tensor/index.md), sizes: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html)): [Tensor](../Tensor/index.md)

`repeat(input: Tensor, sizes: LongArray)`: the `repeat` operator. Tile `input` by per-dim repeat counts: `sizes[i]` copies along dim `i`. `sizes` must carry at least the input's rank; extra LEADING entries add fresh leading dims. Counts are literals or 0-D integer Tensors (a tensor count traces symbolically). Copies; `numel` scales by the product of the counts.