mindspore.ops.Atanh

class mindspore.ops.Atanh(*args, **kwargs)[source]

Computes inverse hyperbolic tangent of the input element-wise.

Inputs:
  • input_x (Tensor): The input tensor.

Outputs:

A Tensor, has the same type as the input.

Raises

TypeError – If input_x is not a Tensor.

Supported Platforms:

Ascend CPU

Examples

>>> input_x = Tensor(np.array([1.047, 0.785]), mindspore.float32)
>>> atanh = ops.Atanh()
>>> output = atanh(input_x)
>>> print(output)
[1.8869909 1.058268 ]