diff options
author | xwgeng <xwgeng@hotmail.com> | 2015-12-15 06:36:37 +0300 |
---|---|---|
committer | xwgeng <xwgeng@hotmail.com> | 2015-12-15 06:36:37 +0300 |
commit | f316d9f0cd235e56bfbb5f7753c9c019a02937d6 (patch) | |
tree | 91820c2a4d12f202e40d132a9407556b17117af5 /MixtureTable.lua | |
parent | 04a555c34b11c644c9c36146280bcd418d496ad1 (diff) |
cancel unused variable and useless expression
Diffstat (limited to 'MixtureTable.lua')
-rw-r--r-- | MixtureTable.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/MixtureTable.lua b/MixtureTable.lua index 760d71a..613d164 100644 --- a/MixtureTable.lua +++ b/MixtureTable.lua @@ -60,7 +60,6 @@ function MixtureTable:updateOutput(input) end self.size[self.dim] = gaterInput:size(self.dimG) self.output:resizeAs(expertInputs:select(self.dim, 1)) - self.gradInput[2] = self._gradInput self.batchSize = batchSize self.backwardSetup = false end @@ -80,7 +79,6 @@ function MixtureTable:updateGradInput(input, gradOutput) -- buffers self._sum = self._sum or input[1].new() - self._gradInput = self._gradInput or {input[1].new(), {}} self._expertView2 = self._expertView2 or input[1].new() self._expert2 = self._expert2 or input[1].new() @@ -154,7 +152,6 @@ function MixtureTable:type(type, tensorCache) self._expert = nil self._expertView = nil self._sum = nil - self._gradInput = nil self._expert2 = nil self._expertView2 = nil return parent.type(self, type, tensorCache) |