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

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

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

# amax

[common]\
fun [amax](amax.md)(input: [Tensor](../Tensor/index.md), dims: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html) = longArrayOf(), keepdim: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false): [Tensor](../Tensor/index.md)

`amax(input: Tensor, dims: LongArray = longArrayOf(), keepdim: Boolean = false)`: the `amax` operator. Maximum value of `input` over `dims`. Empty `dims` reduces every dimension. Returns VALUES (for the positions use `argmax`).