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

26 lines
762 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.Mish
==================
.. py:class:: mindspore.ops.Mish
逐元素计算输入Tensor的MISHSelf Regularized Non-Monotonic Neural Activation Function 自正则化非单调神经激活函数)。
公式如下:
.. math::
\text{output} = x * \tan(\log(1 + \exp(\text{x})))
更多详细信息请参见 `自正则化非单调神经激活函数 <https://arxiv.org/abs/1908.08681>`_
**输入:**
- **x** (Tensor) - shape: :math:`(N, *)` ,其中 :math:`*` 表示任意数量的附加维度数据类型支持float16或float32。
**输出:**
Tensor`x` 的shape和数据类型相同。
**异常:**
- **TypeError** - `x` 的数据类型非float16或float32。