2.5K Star 8.4K Fork 4.7K

GVPMindSpore/mindspore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mindspore.ops.SoftShrink.rst 493 Bytes
一键复制 编辑 原始数据 按行查看 历史
wind-zyx 提交于 2023-05-15 16:32 . ops update value format 0515

mindspore.ops.SoftShrink

.. py:class:: mindspore.ops.SoftShrink(lambd=0.5)

    Soft Shrink激活函数。

    更多参考详见 :func:`mindspore.ops.softshrink`。

    参数:
        - **lambd** (float,可选) - :math:`\lambda` ,应大于等于0。默认值: ``0.5`` 。

    输入:
        - **input_x** (Tensor) - Soft Shrink的输入,数据类型为float16或float32。

    输出:
        Tensor,shape和数据类型与 `input_x` 相同。
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore
r2.3.q1

搜索帮助