Skip to content
fn

tanh_inplace_op

→TensorImplPtr
int tanh_inplace_op(const int & a)

In-place hyperbolic tangent: writes tanh⁡x\tanh x back into a.

Math

ai←tanh⁡(ai)a_i \leftarrow \tanh(a_i)

See Also

tanh_op — out-of-place counterpart.

Parameters

aTensorImplPtr
Tensor to tanh in place. Must be non-null.

Returns

TensorImplPtr

The same pointer as a.