mindspore.mint.cosh
- mindspore.mint.cosh(input)[source]
Computes hyperbolic cosine of input element-wise.
- Parameters
input (Tensor) – The input tensor.
- Returns
Tensor
- Supported Platforms:
Ascend
Examples
>>> import mindspore >>> input = mindspore.tensor([0.74, 0.04, 0.30, 0.56]) >>> output = mindspore.mint.cosh(input) >>> print(output) [1.2865248 1.0008001 1.0453385 1.1609408]