From b24e05bb20d7b02a1794df86356bce25bc325052 Mon Sep 17 00:00:00 2001 From: Jason Wu Date: Tue, 2 Jul 2019 13:15:54 -0400 Subject: [PATCH] Fix lack of x --- docs/src/performance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/performance.md b/docs/src/performance.md index 682b7231..7b58316d 100644 --- a/docs/src/performance.md +++ b/docs/src/performance.md @@ -41,7 +41,7 @@ While one could change your activation function (e.g. to use `0.01f0x`) to avoid the idiomatic (and safe way) is to use `oftype`. ``` - leaky_tanh(x) = oftype(x/1, 0.01) + tanh(x) + leaky_tanh(x) = oftype(x/1, 0.01)x + tanh(x) ```