mindspore.mint.cosh
- mindspore.mint.cosh(input)[源代码]
逐元素计算输入tensor的双曲余弦。
\[out_i = \cosh(input_i)\]- 参数:
input (Tensor) - 输入tensor。
- 返回:
Tensor
- 支持平台:
Ascend
样例:
>>> 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]