mindspore.ops.tanhshrink
=========================

.. 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_tanhshrink.rst
    :alt: 查看源文件


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

    Tanhshrink激活函数, :math:`Tanhshrink(x)=x-Tanh(x)` ,其中 :math:`x` 即输入 `input`。

    详情请查看 :class:`mindspore.nn.Tanhshrink` 。