torch/nn — pull request #58 by nicholas-leonard (2014-07-25 19:40:34+00:00)
Title: Reshape fixes

This PR brings changes to nn.Reshape:
* uses torch.view
* reuses previously allocated memory for non-contiguous inputs and gradOutputs (still doesn't copy memory otherwise)
* handles corner-case (fixes #55)
* adds a unit test (there was none)