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

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