From 6916775db4731b5c40656085471448be476a321d Mon Sep 17 00:00:00 2001 From: Andrew Tulloch Date: Thu, 20 Nov 2014 23:38:45 -0800 Subject: Fix various unused variables in nn --- DepthConcat.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'DepthConcat.lua') 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 -- cgit v1.2.3