Skip to content

Commit dbede61

Browse files
authored
update elu formula (#4114)
1 parent 34959c4 commit dbede61

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

docs/api/paddle/nn/ELU_cn.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ ELU激活层(ELU Activation Operator)
1010

1111
.. math::
1212
13-
ELU(x) = max(0, x) + min(0, \alpha * (e^{x} − 1))
13+
ELU(x)=
14+
\left\{
15+
\begin{array}{lcl}
16+
x,& &\text{if } \ x > 0 \\
17+
alpha * (e^{x} - 1),& &\text{if } \ x <= 0
18+
\end{array}
19+
\right.
1420
1521
其中,:math:`x` 为输入的 Tensor
1622

docs/api/paddle/nn/functional/elu_cn.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ elu激活层(ELU Activation Operator)
1111

1212
.. math::
1313
14-
elu(x) = max(0, x) + min(0, \alpha * (e^{x} − 1))
14+
elu(x)=
15+
\left\{
16+
\begin{array}{lcl}
17+
x,& &\text{if } \ x > 0 \\
18+
alpha * (e^{x} - 1),& &\text{if } \ x <= 0
19+
\end{array}
20+
\right.
1521
1622
其中,:math:`x` 为输入的 Tensor
1723

0 commit comments

Comments
 (0)