Skip to content

Commit

Permalink
Merge pull request #3238 from okuta/bp-doc-leaky-relu
Browse files Browse the repository at this point in the history
[backport] Fix doc of leaky_relu
  • Loading branch information
niboshi committed Aug 25, 2017
2 parents cfa8376 + 64eebb3 commit f76bdd7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion chainer/functions/activation/leaky_relu.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ def leaky_relu(x, slope=0.2):
This function is expressed as
.. math:: f(x)=\\max(x, ax),
.. math::
f(x) = \\left \\{ \\begin{array}{ll}
x & {\\rm if}~ x \\ge 0 \\\\
ax & {\\rm if}~ x < 0,
\\end{array} \\right.
where :math:`a` is a configurable slope value.
Expand Down

0 comments on commit f76bdd7

Please sign in to comment.