From bccd2089c3e627656c5ca126d10e6cb9a4440121 Mon Sep 17 00:00:00 2001 From: Valk Richard Li <48872266+ValKmjolnir@users.noreply.github.com> Date: Thu, 14 Nov 2019 23:24:26 +0800 Subject: [PATCH] update --- balloon/lib/math.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/balloon/lib/math.nas b/balloon/lib/math.nas index 187ac88..b8fe28a 100644 --- a/balloon/lib/math.nas +++ b/balloon/lib/math.nas @@ -60,6 +60,6 @@ var tanh=func(__x) var relu=func(__x) { - if(x>=0){return x;} + if(x>=0){return __x;} else{return 0;} };