summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nerv/layer/affine.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/nerv/layer/affine.lua b/nerv/layer/affine.lua
index 02a3536..136ea4d 100644
--- a/nerv/layer/affine.lua
+++ b/nerv/layer/affine.lua
@@ -54,7 +54,7 @@ function MatrixParam:update_by_err_input(err, input)
end
function LinearTransParam:update_by_err_input(err, input)
- local l2 = 1 - gconf.lrate * gconf.wcost
+ local l2 = 1 - self.gconf.lrate * self.gconf.wcost
self:_update_by_err_input(err, input, l2, l2)
end