From c2abcd032e9f64bdbf015567d76edfada55c8866 Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 27 May 2015 12:05:00 +0800 Subject: ... --- layer/sigmoid.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'layer') diff --git a/layer/sigmoid.lua b/layer/sigmoid.lua index d69e9e3..d0a87c0 100644 --- a/layer/sigmoid.lua +++ b/layer/sigmoid.lua @@ -5,10 +5,14 @@ function SigmoidLayer:__init(id, global_conf) self.gconf = global_conf end +function SigmoidLayer:update(bp_err, input, output) + -- no params, therefore do nothing +end + function SigmoidLayer:propagate(input, output) output:sigmoid(input) end function SigmoidLayer:back_propagate(next_bp_err, bp_err, input, output) - next_bp_err:sigmoid(bp_err, output) + next_bp_err:sigmoid_grad(bp_err, output) end -- cgit v1.2.3-70-g09d2