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 /DepthConcat.lua | |
parent | b7c39f91f0e47309e16993a9b63a23040786d495 (diff) |
Fix various unused variables in nn
Diffstat (limited to 'DepthConcat.lua')
-rw-r--r-- | DepthConcat.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/DepthConcat.lua b/DepthConcat.lua index 70646f4..7187d61 100644 --- a/DepthConcat.lua +++ b/DepthConcat.lua @@ -9,7 +9,7 @@ -- this, we select the largest spatial dimensions and add zero-padding -- around the smaller dimensions. ------------------------------------------------------------------------ -local DepthConcat, parent = torch.class('nn.DepthConcat', 'nn.Concat') +local DepthConcat, _ = torch.class('nn.DepthConcat', 'nn.Concat') function DepthConcat:windowNarrow(output, currentOutput, offset) local outputWindow = output:narrow(self.dimension, offset, currentOutput:size(self.dimension)) @@ -79,7 +79,7 @@ function DepthConcat:accGradParameters(input, gradOutput, scale) for i,module in ipairs(self.modules) do local currentOutput = module.output local gradOutputWindow = self:windowNarrow(gradOutput, currentOutput, offset) - local currentGradInput = module:accGradParameters(input, gradOutputWindow, scale) + module:accGradParameters(input, gradOutputWindow, scale) offset = offset + currentOutput:size(self.dimension) end end @@ -89,7 +89,7 @@ function DepthConcat:accUpdateGradParameters(input, gradOutput, lr) for i,module in ipairs(self.modules) do local currentOutput = module.output local gradOutputWindow = self:windowNarrow(gradOutput, currentOutput, offset) - local currentGradInput = module:accUpdateGradParameters(input, gradOutputWindow, lr) + module:accUpdateGradParameters(input, gradOutputWindow, lr) offset = offset + currentOutput:size(self.dimension) end end |