Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/clementfarabet/lua---nnx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Farabet <clement.farabet@gmail.com>2011-08-23 21:26:38 +0400
committerClement Farabet <clement.farabet@gmail.com>2011-08-23 21:26:38 +0400
commitb03dd22e0afc878d2454f8ed76d94b4ac9957a34 (patch)
treee12c3ad74ceb74b70c1a9ef0ed4ee03232eba74a
parentfda0f09643e40869396a62e9dcc9860044c68690 (diff)
Fixed missing local in parameter finder.
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 78948c5..99e2fa7 100644
--- a/init.lua
+++ b/init.lua
@@ -158,7 +158,7 @@ end
function nnx.getParameters(...)
-- to hold all parameters found
- holder = {}
+ local holder = {}
-- call recursive call
local modules = {...}
for _,module in ipairs(modules) do
@@ -170,7 +170,7 @@ end
function nnx.getGradParameters(...)
-- to hold all parameters found
- holder = {}
+ local holder = {}
-- call recursive call
local modules = {...}
for _,module in ipairs(modules) do