aboutsummaryrefslogtreecommitdiff
path: root/layer/sigmoid.lua
diff options
context:
space:
mode:
authorcloudygoose <[email protected]>2015-06-21 10:50:46 +0800
committercloudygoose <[email protected]>2015-06-21 10:50:46 +0800
commitad2c4013dec71667d6bbd5e9a249df2085208507 (patch)
tree474c536ff4a7d757bb61915a1bfc7a073f40d09f /layer/sigmoid.lua
parent839d938df0d83ec311c5d1299923c667adff6a87 (diff)
parentf3f4e74eb4dbb8829e5ee136ba4b0c0a7938b551 (diff)
Merge upstream 'parameter update big-change'.
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'layer/sigmoid.lua')
-rw-r--r--layer/sigmoid.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/layer/sigmoid.lua b/layer/sigmoid.lua
index dd10fb9..dfd09eb 100644
--- a/layer/sigmoid.lua
+++ b/layer/sigmoid.lua
@@ -22,10 +22,10 @@ function SigmoidLayer:propagate(input, output)
output[1]:sigmoid(input[1])
end
-function SigmoidLayer:back_propagate(next_bp_err, bp_err, input, output)
+function SigmoidLayer:back_propagate(bp_err, next_bp_err, input, output)
next_bp_err[1]:sigmoid_grad(bp_err[1], output[1])
end
function SigmoidLayer:get_params()
- return {}
+ return nerv.ParamRepo({})
end