make self.output and self.gradInput populated at the constructor