diff options
author | Andrew Tulloch <andrew@tullo.ch> | 2014-11-21 10:38:45 +0300 |
---|---|---|
committer | Andrew Tulloch <andrew@tullo.ch> | 2014-11-21 10:39:22 +0300 |
commit | 6916775db4731b5c40656085471448be476a321d (patch) | |
tree | ecbe7b560e213c0b0fc4f1b7911f3a3057151e0d /Concat.lua | |
parent | b7c39f91f0e47309e16993a9b63a23040786d495 (diff) |
Fix various unused variables in nn
Diffstat (limited to 'Concat.lua')
-rw-r--r-- | Concat.lua | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -63,9 +63,10 @@ function Concat:accGradParameters(input, gradOutput, scale) local offset = 1 for i,module in ipairs(self.modules) do local currentOutput = module.output - local currentGradInput = module:accGradParameters(input, - gradOutput:narrow(self.dimension, offset, currentOutput:size(self.dimension)), - scale) + module:accGradParameters( + input, + gradOutput:narrow(self.dimension, offset, currentOutput:size(self.dimension)), + scale) offset = offset + currentOutput:size(self.dimension) end end @@ -74,9 +75,10 @@ function Concat:accUpdateGradParameters(input, gradOutput, lr) local offset = 1 for i,module in ipairs(self.modules) do local currentOutput = module.output - local currentGradInput = module:accUpdateGradParameters(input, - gradOutput:narrow(self.dimension, offset, currentOutput:size(self.dimension)), - lr) + module:accUpdateGradParameters( + input, + gradOutput:narrow(self.dimension, offset, currentOutput:size(self.dimension)), + lr) offset = offset + currentOutput:size(self.dimension) end end |