diff options
Diffstat (limited to 'layer/sigmoid.lua')
-rw-r--r-- | layer/sigmoid.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |