mindspore/docs/api/api_python/mindspore.ops.func_csr_expm...

20 lines
549 B
ReStructuredText
Executable File
Raw 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.csr_expm1
========================
.. py:function:: mindspore.ops.csr_expm1(x: CSRTensor)
逐元素计算输入CSRTensor的指数然后减去1。
.. math::
out_i = e^{x_i} - 1
参数:
- **x** (CSRTensor) - 数据类型为float16或float32的CSRTensor其秩必须在[0, 7]中。
返回:
CSRTensorshape与 `x` 相同。
异常:
- **TypeError** - 如果 `x` 不是CSRTensor。
- **TypeError** - 如果 `x` 的数据类型既不是float16也不是float32。