Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/soumith/cudnn.torch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoumith <soumith@fb.com>2014-12-20 10:30:08 +0300
committersoumith <soumith@fb.com>2014-12-20 10:30:08 +0300
commit035863d94fb41b48ccd0babf7055c6bb719bbf8f (patch)
treebff149765b13aa311012e47d4b4e2613b273e3e8 /Pointwise.lua
parenta2def9658f9df262a252ff71e9dfd310ab722b13 (diff)
lint fixes (80 columns)
Diffstat (limited to 'Pointwise.lua')
-rw-r--r--Pointwise.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/Pointwise.lua b/Pointwise.lua
index aecfe08..56a374c 100644
--- a/Pointwise.lua
+++ b/Pointwise.lua
@@ -50,7 +50,8 @@ end
function Pointwise:updateGradInput(input, gradOutput)
assert((gradOutput:dim() == 4 or gradOutput:dim() == 3));
if not gradOutput:isContiguous() then
- self._gradOutput = self._gradOutput or gradOutput.new():resizeAs(gradOutput)
+ self._gradOutput = self._gradOutput
+ or gradOutput.new():resizeAs(gradOutput)
self._gradOutput:copy(gradOutput)
gradOutput = self._gradOutput
end