mindspore/docs/api/api_python/ops/mindspore.ops.func_silu.rst

20 lines
471 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.silu
==================
.. py:function:: mindspore.ops.silu(x)
按输入逐元素计算激活函数SiLUSigmoid Linear Unit。该激活函数定义为
.. math::
\text{SiLU}(x) = x * \sigma(x),
其中,:math:`\sigma(x)` 是Logistic Sigmoid函数。
.. math::
\text{sigma}(x_i) = \frac{1}{1 + \exp(-x_i)},
其中,:math:`x_i` 是输入x的元素。
更多详情请参考 :class:`mindspore.nn.SiLU`