summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortxh18 <[email protected]>2015-11-23 15:54:11 +0800
committertxh18 <[email protected]>2015-11-23 15:54:11 +0800
commitec6bde79a5817409bb8a77075b411974c1d8f856 (patch)
tree646bcb7344a605b4648038b53b5f8f1b2a53b93e
parentfee96e3d2cb39c6e2b4631b9d8b37b9949df27e7 (diff)
small bug fix
-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