diff options
author | soumith <soumith@fb.com> | 2014-12-20 10:30:08 +0300 |
---|---|---|
committer | soumith <soumith@fb.com> | 2014-12-20 10:30:08 +0300 |
commit | 035863d94fb41b48ccd0babf7055c6bb719bbf8f (patch) | |
tree | bff149765b13aa311012e47d4b4e2613b273e3e8 /Pointwise.lua | |
parent | a2def9658f9df262a252ff71e9dfd310ab722b13 (diff) |
lint fixes (80 columns)
Diffstat (limited to 'Pointwise.lua')
-rw-r--r-- | Pointwise.lua | 3 |
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 |