mindspore.ops.sinh

mindspore.ops.sinh(x)[源代码]

Computes hyperbolic sine of the input element-wise.

\[out_i = \sinh(x_i)\]
Parameters

x (Tensor) – The input tensor of hyperbolic sine function, its rank must be in [0, 7] inclusive.

Returns

Tensor, has the same shape as x.

Raises

TypeError – If x is not a Tensor.

Supported Platforms:

Ascend GPU CPU

Examples

>>> x = Tensor(np.array([0.62, 0.28, 0.43, 0.62]), mindspore.float32)
>>> output = ops.sinh(x)
>>> print(output)
[0.6604918  0.28367308 0.44337422 0.6604918 ]