local Abs, parent = torch.class('nn.Abs', 'nn.Module') function Abs:__init() parent.__init(self) end function Abs:updateOutput(input) input.nn.Abs_updateOutput(self, input) return self.output end function Abs:updateGradInput(input, gradOutput) input.nn.Abs_updateGradInput(self, input, gradOutput) return self.gradInput end