mindspore.ops.exp
=================

.. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.2/resource/_static/logo_source.svg
    :target: https://gitee.com/mindspore/mindspore/blob/r2.2/docs/api/api_python/ops/mindspore.ops.func_exp.rst
    :alt: 查看源文件


.. py:function:: mindspore.ops.exp(input)

    逐元素计算 `input` 的指数。

    .. math::

        out_i = e^{x_i}

    参数:
        - **input** (Tensor) - 指数函数的输入Tensor。

    返回:
        Tensor,具有与 `input` 相同的数据类型和shape。

    异常:
        - **TypeError** - `input` 不是Tensor。