From c13115662e739b434f1071eb623a41a39d8b4985 Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 28 May 2015 14:31:31 +0800 Subject: should support multiple input/output for layers --- layer/sigmoid.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layer/sigmoid.lua') diff --git a/layer/sigmoid.lua b/layer/sigmoid.lua index d0a87c0..41a6ef7 100644 --- a/layer/sigmoid.lua +++ b/layer/sigmoid.lua @@ -10,9 +10,9 @@ function SigmoidLayer:update(bp_err, input, output) end function SigmoidLayer:propagate(input, output) - output:sigmoid(input) + output[0]:sigmoid(input[0]) end function SigmoidLayer:back_propagate(next_bp_err, bp_err, input, output) - next_bp_err:sigmoid_grad(bp_err, output) + next_bp_err[0]:sigmoid_grad(bp_err[0], output[0]) end -- cgit v1.2.3-70-g09d2