diff options
author | Nicholas Leonard <nick@nikopia.org> | 2014-09-19 02:23:01 +0400 |
---|---|---|
committer | Nicholas Leonard <nick@nikopia.org> | 2014-09-19 02:23:01 +0400 |
commit | e4c44eeff7082706fe18e7d3deadcfc720b7f875 (patch) | |
tree | 2e0eebcda6b9087fd4fc6ab2c1d43ef447f2ef71 /SoftMaxTree.lua | |
parent | 1cc48080509eb46bd13d366d9e98c7ebdf83eb8c (diff) |
fixed SoftMaxTree unit test bug (missing zeroGradParameters)
Diffstat (limited to 'SoftMaxTree.lua')
-rw-r--r-- | SoftMaxTree.lua | 2 |
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 |