mindspore.ops.sinh

View Source On Gitee
mindspore.ops.sinh(input)[source]

Computes hyperbolic sine of the input element-wise.

\[output_i = \sinh(input_i)\]
Parameters

input (Tensor) – The input tensor of hyperbolic sine function.

Returns

Tensor, has the same shape as input.

Raises

TypeError – If input is not a Tensor.

Supported Platforms:

Ascend GPU CPU

Examples

>>> import mindspore
>>> import numpy as np
>>> from mindspore import Tensor, ops
>>> input = Tensor(np.array([0.62, 0.28, 0.43, 0.62]), mindspore.float32)
>>> output = ops.sinh(input)
>>> print(output)
[0.6604918  0.28367308 0.44337422 0.6604918 ]