mindspore/docs/api/api_python/ops/mindspore.ops.func_cosh.rst

20 lines
561 B
ReStructuredText
Raw Normal View History

2022-06-16 11:06:43 +08:00
mindspore.ops.cosh
===================
.. py:function:: mindspore.ops.cosh(x)
2022-06-17 10:14:25 +08:00
逐元素计算 `x` 的双曲余弦值。
2022-06-16 11:06:43 +08:00
.. math::
out_i = cosh(x_i)
2022-07-25 15:09:45 +08:00
参数:
- **x** (Tensor) - cosh的输入任意维度的Tensor其数据类型为float16、float32、float64、complex64、complex128。
2022-06-16 11:06:43 +08:00
2022-07-25 15:09:45 +08:00
返回:
Tensor数据类型和shape与 `x` 相同。
2022-06-16 11:06:43 +08:00
2022-07-25 15:09:45 +08:00
异常:
- **TypeError** - `x` 的数据类型不是float16、float32、float64、complex64、complex128。
- **TypeError** - `x` 不是Tensor。