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:
authorNicholas Leonard <nick@nikopia.org>2014-09-19 02:23:01 +0400
committerNicholas Leonard <nick@nikopia.org>2014-09-19 02:23:01 +0400
commite4c44eeff7082706fe18e7d3deadcfc720b7f875 (patch)
tree2e0eebcda6b9087fd4fc6ab2c1d43ef447f2ef71 /SoftMaxTree.lua
parent1cc48080509eb46bd13d366d9e98c7ebdf83eb8c (diff)
fixed SoftMaxTree unit test bug (missing zeroGradParameters)
Diffstat (limited to 'SoftMaxTree.lua')
-rw-r--r--SoftMaxTree.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/SoftMaxTree.lua b/SoftMaxTree.lua
index b8f7c09..e3ff61e 100644
--- a/SoftMaxTree.lua
+++ b/SoftMaxTree.lua
@@ -188,7 +188,7 @@ end
-- when static is true, return parameters with static keys
-- i.e. keys that don't change from batch to batch
function SoftMaxTree:parameters()
- static = self.static
+ local static = self.static
local params, grads = {}, {}
local updated = false
for parentId, scale in pairs(self.updates) do