逐元素计算输入tensor的双曲余弦。
input (Tensor) - 输入tensor。
Tensor
Ascend GPU CPU
Ascend
GPU
CPU
样例:
>>> import mindspore >>> input = mindspore.tensor([0.74, 0.04, 0.30, 0.56]) >>> output = mindspore.ops.cosh(input) >>> print(output) [1.2865248 1.0008001 1.0453385 1.1609408]