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

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

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

# concat

[common]\
fun [concat](concat.md)(tensors: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[Tensor](../Tensor/index.md)&gt;, dim: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) = 0, activation: [Activation](../Activation/index.md) = Activation.IDENTITY): [Tensor](../Tensor/index.md)

`concat(tensors: List<Tensor>, dim: Long = 0L, activation: Activation = Activation.IDENTITY)`: the `concat` operator. Join tensors along an EXISTING dim: all inputs share rank and off-dim extents; the `dim` extents add up. Copies into fresh storage. The optional `activation` fuses an elementwise epilogue into the single copy pass (`act(concat(...))`): it requires a float output dtype, every input already AT that dtype, and a non-gated kind; anything else raises. `Activation::Identity` (the default) is the plain join.