fn
atanh
→Tensoratanh(x: Tensor)Inverse hyperbolic tangent.
Short-name alias of arctanh. Domain is the open interval
; values at the boundary diverge to .
Parameters
xTensorInput tensor with values in .
Returns
TensorElement-wise inverse hyperbolic tangent.
Notes
Mathematical definition:
Values outside produce NaN; produces . The derivative is .
Examples
>>> import lucid
>>> x = lucid.tensor([-0.5, 0.0, 0.5])
>>> lucid.atanh(x)
Tensor([-0.5493, 0. , 0.5493])