2.3K Star 8.1K Fork 4.3K

GVPMindSpore / mindspore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mindspore.ops.Softplus.rst 756 Bytes
一键复制 编辑 原始数据 按行查看 历史

mindspore.ops.Softplus

.. py:class:: mindspore.ops.Softplus

    Softplus激活函数。

    Softplus为ReLU函数的平滑近似。可对一组数值使用来确保转换后输出结果均为正值。函数计算如下:

    .. math::

        \text{output} = \log(1 + \exp(\text{x}))

    输入:
        - **input_x** (Tensor) - 任意维度的输入Tensor。
          支持数据类型:

          - GPU/CPU:float16、float32、float64。
          - Ascend:float16、float32。

    输出:
        Tensor,与 `input_x` 的shape和数据类型相同。

    异常:
        - **TypeError** - `input_x` 不是Tensor。
        - **TypeError** - `input_x` 的数据类型非float16、float32或float64。
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore
master

搜索帮助