diff options
author | Determinant <[email protected]> | 2015-05-27 12:05:00 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-05-27 12:05:00 +0800 |
commit | c2abcd032e9f64bdbf015567d76edfada55c8866 (patch) | |
tree | db88b19e42ef03e67147408c6b61e9af8a408f0a | |
parent | 44752a8175c54effd0c901333a7eb4cc71dd6810 (diff) |
...
-rw-r--r-- | layer/sigmoid.lua | 6 |
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 |