Closed ChunyanZhao closed 6 years ago
I am confused by the function, and I think that the gradInput should be computed by gradInput = self.weight[1] * gradOutput rather than gradInput = self.weight[1] + gradOutput. https://github.com/torch/nn/blob/872682558c48ee661ebff693aa5a41fcdefa7873/Mul.lua#L29-L34
I am confused by the function, and I think that the gradInput should be computed by gradInput = self.weight[1] * gradOutput rather than gradInput = self.weight[1] + gradOutput. https://github.com/torch/nn/blob/872682558c48ee661ebff693aa5a41fcdefa7873/Mul.lua#L29-L34