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

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

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

# tanh

[common]\
fun [tanh](tanh.md)(input: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`tanh(input: Tensor)`: the `tanh` operator. Elementwise hyperbolic tangent. Value-domain violations follow IEEE semantics (NaN / ±inf in the result), never an error.