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

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

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

# kthvalue

[common]\
fun [kthvalue](kthvalue.md)(input: [Tensor](../Tensor/index.md), k: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html), dim: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) = -1L, keepdim: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false): [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[Tensor](../Tensor/index.md)&gt;

`kthvalue(input: Tensor, k: Long, dim: Long = -1L, keepdim: Boolean = false)`: the `kthvalue` operator.