</span></span>(<span>...)</span>
</code></dt>
<dd>
<section class="desc"><p>tanh(input, out=None) -&gt; Tensor</p>
<p>Returns a new tensor with the hyperbolic tangent of the elements
of :attr:<code>input</code>.</p>
<p>[ \text{out}<em i>{i} = \tanh(\text{input}</em>) ]</p>
<h2 id="args">Args</h2>
<dl>
<dt><strong><code>input</code></strong> :&ensp;<code>Tensor</code></dt>
<dd>the input tensor.</dd>
<dt><strong><code>out</code></strong> :&ensp;<code>Tensor</code>, optional</dt>
<dd>the output tensor.</dd>
</