torch/cutorch — pull request #50 by nicholas-leonard (2014-10-05 21:00:55+00:00)
Title: fixes non-contiguous copy bug

This PR fixes #39 . Basically, to fix the bug, I modified the `THCudaTensor_computesz` function to return sizes without any of the size=1 dimensions. It includes additional unit tests.