2.6K Star 8.5K Fork 4.8K

GVPMindSpore/mindspore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mindspore.ops.func_softsign.rst 598 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhangyi 提交于 2022-07-26 10:27 . modify the format of API files

mindspore.ops.softsign

.. py:function:: mindspore.ops.softsign(x)

    Softsign激活函数。

    Softsign函数定义为:

    .. math::
        \text{SoftSign}(x) = \frac{x}{1 + |x|}

    参数:
        - **x** (Tensor) - shape为 :math:`(N, *)` 的Tensor,其中 :math:`*` 表示任意个数的维度。它的数据类型必须为float16或float32。

    返回:
        Tensor,数据类型和shape与 `x` 相同。

    异常:
        - **TypeError** - `x` 不是Tensor。
        - **TypeError** - `x` 的数据类型既不是float16也不是float32。
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore
r2.2

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385