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-05-17 06:42:13 +0400
committernicholas-leonard <nick@nikopia.org>2014-05-17 06:42:13 +0400
commit35e28f3d0d91bef1181f0f9e10604632f6d40887 (patch)
tree503eed37850cc630349c3178bc7732fcf4968fca /SoftMaxTree.lua
parent14a656f151df565b87c2103ac769bee4271740cf (diff)
SoftMaxTree_updateGradInput works (debugged and unit tested)
Diffstat (limited to 'SoftMaxTree.lua')
-rw-r--r--SoftMaxTree.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/SoftMaxTree.lua b/SoftMaxTree.lua
index 7698ed5..6f2a8fd 100644
--- a/SoftMaxTree.lua
+++ b/SoftMaxTree.lua
@@ -134,17 +134,15 @@ function SoftMaxTree:updateOutput(inputTable)
return input.nn.SoftMaxTree_updateOutput(self, input, target)
end
-function SoftMaxTree:updateGradInput(inputTable, gradOutputTable)
+function SoftMaxTree:updateGradInput(inputTable, gradOutput)
local input, target = unpack(inputTable)
- local gradOutput, target = unpack(gradOutputTable)
if self.gradInput then
return input.nn.SoftMaxTree_updateGradInput(self, input, gradOutput, target)
end
end
-function SoftMaxTree:accGradParameters(inputTable, gradOutputTable, scale)
+function SoftMaxTree:accGradParameters(inputTable, gradOutput, scale)
local input, target = unpack(inputTable)
- local gradOutput, target = unpack(gradOutputTable)
scale = scale or 1
input.nn.SoftMaxTree_accGradParameters(self, input, gradOutput, target, scale)
end