update docs for api: tanhshrink

This commit is contained in:
guozhibin 2023-01-04 15:20:58 +08:00
parent 378b787bf1
commit 870852c7aa
2 changed files with 2 additions and 2 deletions

View File

@ -3,6 +3,6 @@ mindspore.ops.tanhshrink
.. py:function:: mindspore.ops.tanhshrink(x)
按元素计算Tanhshrink函数
按元素计算 :math:`Tanhshrink(x)=x-Tanh(x)`
详情请查看 :class:`mindspore.nn.Tanhshrink`

View File

@ -9610,7 +9610,7 @@ def sum(x, dim=None, keepdim=False, *, dtype=None):
def tanhshrink(x):
'''
Applies element-wise, :math:`Tanhshrink(x)=x-Tanh(x)` .
see :class:`mindspore.nn.Tanhshrink` for more details.
See :class:`mindspore.nn.Tanhshrink` for more details.
Supported Platforms:
``Ascend`` ``GPU`` ``CPU``