torch/cwrap — pull request #2 by GeorgOstrovski (2014-12-25 16:40:00+00:00)
Title: Fix argument declaration for floating point numbers

Previously because of %d in the string, floating point numbers would have been initialized with floor(default) instead of default. This led to wrong initialization in torch.bernoulli (0 instead of 0.5)