mindspore.Tensor.asinh

View Source On Gitee
Tensor.asinh() Tensor

Computes inverse hyperbolic sine of self element-wise.

\[out_i = \sinh^{-1}(input_i)\]
Returns

Tensor, has the same shape as self. The dtype of output is float32 when dtype of self is in bool, int8, uint8, int16, int32, int64. Otherwise output has the same dtype as self.

Raises

TypeError – If self is not a Tensor.

Supported Platforms:

Ascend GPU CPU

Examples

>>> import mindspore
>>> import numpy as np
>>> from mindspore import Tensor
>>> x = Tensor(np.array([-5.0, 1.5, 3.0, 100.0]), mindspore.float32)
>>> output = Tensor.asinh(x)  # x.asinh()
>>> print(output)
[-2.3124385  1.1947632  1.8184465  5.298342 ]