From: Francois Fleuret Date: Wed, 11 Jan 2017 08:35:21 +0000 (+0100) Subject: Update. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=e5030cca047eed4b8c5db172fc52e893b1b1d843;p=dagnn.git Update. --- diff --git a/dagnn.lua b/dagnn.lua index 2ed25c5..1b467e7 100755 --- a/dagnn.lua +++ b/dagnn.lua @@ -140,7 +140,10 @@ end function DAG:updateGradInput(input, gradOutput) self:sort() - self:applyOnModules(function(m, i, go) m:updateGradInput(i, go) end, self.outputModules, input, gradOutput) + self:applyOnModules( + function(m, i, go) m:updateGradInput(i, go) end, + self.outputModules, input, gradOutput + ) for k = self.sorted, 1, -1 do local m = sorted[k] diff --git a/test-dagnn.lua b/test-dagnn.lua index 3b1e66a..434f662 100755 --- a/test-dagnn.lua +++ b/test-dagnn.lua @@ -55,4 +55,4 @@ printTensorTable(output) ---------------------------------------------------------------------- --- gradInput = g:updateGradInput({ input }, output) +gradInput = g:updateGradInput({ input }, output)