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

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

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

# unique

[common]\
fun [unique](unique.md)(input: [Tensor](../Tensor/index.md), sorted: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = true, 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;

`unique(input: Tensor, sorted: Boolean = true, returnInverse: Boolean = false, returnCounts: Boolean = false, dim: Long? = null)`: the `unique` operator.