torch/nn — pull request #6 by fidlej (2014-03-12 10:20:46+00:00)
Title: Added DotProduct:type()

The nn.DotProduct needs a custom type() method.
The self.gradInput table of tensors is converted to the wanted type there.