Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1 KB

SELU_cn.rst

File metadata and controls

33 lines (24 loc) · 1 KB

SELU

SELU 激活层

$$\begin{aligned} SELU(x)= scale * \begin{cases} x, \text{if } x > 0 \\\ alpha * e^{x} - alpha, \text{if } x <= 0 \end{cases} \end{aligned}$$

其中,x 为输入的 Tensor。

参数

  • scale (float,可选) - SELU 激活计算公式中的 scale 值,必须大于 1.0。默认值为 1.0507009873554804934193349852946。
  • alpha (float,可选) - SELU 激活计算公式中的 alpha 值,必须大于等于零。默认值为 1.6732632423543772848170429916717。
  • name (str,可选) - 具体用法请参见 api_guide_Name,一般无需设置,默认值为 None。

形状

  • input:任意形状的 Tensor。
  • output:和 input 具有相同形状的 Tensor。

代码示例

COPY-FROM: paddle.nn.SELU