mindspore.ops.Acosh

View Source On Gitee
class mindspore.ops.Acosh[source]

Computes inverse hyperbolic cosine of the inputs element-wise.

Refer to mindspore.ops.acosh() for more details.

Inputs:
  • x (Tensor) - The input Tensor. Input value must be in range [1, inf].

Outputs:

Tensor, has the same shape and type as x.

Supported Platforms:

Ascend GPU CPU

Examples

>>> import numpy as np
>>> import mindspore.ops as ops
>>> from mindspore import Tensor, dtype
>>> acosh = ops.Acosh()
>>> x = Tensor(np.array([1.0, 1.5, 3.0, 100.0]), dtype.float32)
>>> output = acosh(x)
>>> print(output)
[0.        0.9624237 1.7627472 5.298292 ]
>>> x = Tensor(2.6)
>>> output = acosh(x)
>>> print(output)
1.609438