mindspore.Tensor.cosh
- Tensor.cosh()[source]
Computes hyperbolic cosine of x element-wise.
\[out_i = \cosh(x_i)\]- Returns
Tensor, has the same shape as x.
- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> from mindspore import Tensor >>> a = Tensor(np.array([0.24, 0.83, 0.31, 0.09]), mindspore.float32) >>> output = a.cosh() >>> print(output) [1.0289385 1.364684 1.048436 1.0040528]