torch/cunn — pull request #18 by jonathantompson (2014-07-02 15:22:18+00:00)
Title: Fixed a mistake in SpatialUpSamplingNearest for large cuda tensors

Sorry, guys... This is yet another fix for the SpatialUpSamplingNearest cuda implementation. When I clamped the maximum number of blocks for compatibility with SM_2_0, I forgot to add to the remaining elements to the y dimension.

It now works for very large inputs (I tested a 4GB image array).