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

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

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

# uniqueConsecutive

[common]\
fun [uniqueConsecutive](uniqueConsecutive.md)(input: [Tensor](../Tensor/index.md), returnInverse: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false, returnCounts: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false, dim: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)? = null): [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[Tensor](../Tensor/index.md)&gt;

`uniqueConsecutive(input: Tensor, returnInverse: Boolean = false, returnCounts: Boolean = false, dim: Long? = null)`: the `unique_consecutive` operator.