2022-05-26 20:11:11 +08:00
|
|
|
|
mindspore.ops.Mish
|
2022-08-30 16:34:32 +08:00
|
|
|
|
====================
|
2022-05-26 20:11:11 +08:00
|
|
|
|
|
|
|
|
|
|
.. py:class:: mindspore.ops.Mish
|
|
|
|
|
|
|
|
|
|
|
|
逐元素计算输入Tensor的MISH(Self Regularized Non-Monotonic Neural Activation Function 自正则化非单调神经激活函数)。
|
|
|
|
|
|
|
|
|
|
|
|
公式如下:
|
|
|
|
|
|
|
|
|
|
|
|
.. math::
|
|
|
|
|
|
\text{output} = x * \tan(\log(1 + \exp(\text{x})))
|
|
|
|
|
|
|
2022-07-05 11:30:17 +08:00
|
|
|
|
更多详细信息请参见 `A Self Regularized Non-Monotonic Neural Activation Function <https://arxiv.org/abs/1908.08681>`_ 。
|
2022-05-26 20:11:11 +08:00
|
|
|
|
|
2022-07-26 10:27:56 +08:00
|
|
|
|
输入:
|
|
|
|
|
|
- **x** (Tensor) - shape: :math:`(N, *)` ,其中 :math:`*` 表示任意数量的附加维度,数据类型支持float16或float32。
|
2022-06-15 10:19:50 +08:00
|
|
|
|
|
2022-07-26 10:27:56 +08:00
|
|
|
|
输出:
|
|
|
|
|
|
Tensor,与 `x` 的shape和数据类型相同。
|
2022-05-26 20:11:11 +08:00
|
|
|
|
|
2022-07-26 10:27:56 +08:00
|
|
|
|
异常:
|
|
|
|
|
|
- **TypeError** - `x` 的数据类型非float16或float32。
|