---
title: "ClikaRT::ops::tanh_"
sidebar_label: "tanh_"
description: "In-place tanh: writes the result through self; same formula, arguments, and error conditions as tanh(). A view input writes through its base storage."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--function">function</span>

## tanh\_() {#tanh_}

<div class="api-signature">

[`Tensor`](../Tensor.md)`&` **`tanh_`**([`Tensor`](../Tensor.md)`&` `self`)

</div>

In-place [`tanh`](./tanh.md#tanh): writes the result through `self`; same formula, arguments, and error conditions as [`tanh()`](./tanh.md#tanh). A view input writes through its base storage. Returns `self` under the value surface, [`Result`](../Result.md)`<void>` under the [`Result`](../Result.md) surface; [`CLIKART_CHECK`](../../index.md#CLIKART_CHECK) is the mode-stable spelling.

<div class="api-declared">

Declared in `ClikaRT/compute/ops.h`, line 5425

</div>
