mindspore.ops.cosh

查看源文件
mindspore.ops.cosh(input)[源代码]

逐元素计算输入tensor的双曲余弦。

outi=cosh(inputi)
参数:
  • input (Tensor) - 输入tensor。

返回:

Tensor

支持平台:

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]