aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-05-27 12:05:00 +0800
committerDeterminant <[email protected]>2015-05-27 12:05:00 +0800
commitc2abcd032e9f64bdbf015567d76edfada55c8866 (patch)
treedb88b19e42ef03e67147408c6b61e9af8a408f0a
parent44752a8175c54effd0c901333a7eb4cc71dd6810 (diff)
...
-rw-r--r--layer/sigmoid.lua6
1 files changed, 5 insertions, 1 deletions
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