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

20 lines
401 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.exp
=================
.. py:function:: mindspore.ops.exp(x)
逐元素计算 `x` 的指数。
.. math::
out_i = e^{x_i}
参数:
- **x** (Tensor) - 指数函数的输入Tensor。维度需要在 [0, 7] 的范围。
返回:
Tensor具有与 `x` 相同的数据类型和shape。
异常:
- **TypeError** - `x` 不是Tensor。