# selu¶

paddle.fluid.layers.nn. selu ( x, scale=None, alpha=None, name=None ) [source]

Selu Operator.

The equation is:

$\begin{split}selu= \\lambda* \\begin{cases} x &\\quad \\text{ if } x>0 \n \\alpha * e^x - \\alpha &\\quad \\text{ if } x<=0 \\end{cases}\end{split}$

The input X can carry the LoD (Level of Details) information, or not. And the output shares the LoD information with input X.

Parameters
• x (Variable) – The input N-D Tensor.

• name (str, optional) – The default value is None. Normally there is no need for user to set this property. For more information, please refer to Name .

Returns

The output Tensor or LoDTensor with the same shape and LoD information as input.

Return type

Variable(Tensor|LoDTensor)

Examples

import paddle
import numpy as np