mindspore.ops.Asinh

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

Computes inverse hyperbolic sine of the input element-wise.

\[out_i = sinh^{-1}(input_i)\]
Inputs:
  • input_x (Tensor) - The shape of tensor is \((x_1, x_2, ..., x_R)\). The data type should be one of the following types: float16, float32.

Outputs:

Tensor, has the same shape and type as input_x.

Raises

TypeError – If input_x is not a Tensor.

Supported Platforms:

Ascend GPU CPU

Examples

>>> asinh = ops.Asinh()
>>> input_x = Tensor(np.array([-5.0, 1.5, 3.0, 100.0]), mindspore.float32)
>>> output = asinh(input_x)
>>> print(output)
[-2.3124385  1.1947632  1.8184465  5.298342 ]