torch/nn — pull request #33 by nicholas-leonard (2014-07-10 18:01:04+00:00)
Title: added accUpdate to nn.LookupTable

This PR add method accUpdateOnly() to nn.LookupTable. This allows the LookupTable to function without the gradWeights tensor. This is useful when you want to save memory (especially for GPU) as this Module can use up a great proportion of your available memory. Added unit tests.