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

20 lines
561 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.cosh
===================
.. py:function:: mindspore.ops.cosh(x)
逐元素计算 `x` 的双曲余弦值。
.. math::
out_i = cosh(x_i)
参数:
- **x** (Tensor) - cosh的输入任意维度的Tensor其数据类型为float16、float32、float64、complex64、complex128。
返回:
Tensor数据类型和shape与 `x` 相同。
异常:
- **TypeError** - `x` 的数据类型不是float16、float32、float64、complex64、complex128。
- **TypeError** - `x` 不是Tensor。