diff options
author | soumith <soumith@fb.com> | 2017-02-15 15:10:43 +0300 |
---|---|---|
committer | soumith <soumith@fb.com> | 2017-02-15 15:18:43 +0300 |
commit | 618f847d94ad65baef1c1614ed241d6e4bea7151 (patch) | |
tree | b080b2c75ab2eee34efca5b96ff09fccce5e892e /THCUNN.lua | |
parent | 251fcbfaf9a0acbf5ef8799c7f22e8b302fd6c76 (diff) |
add local
Diffstat (limited to 'THCUNN.lua')
-rw-r--r-- | THCUNN.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -136,7 +136,7 @@ if cutorch.hasHalf then -- in order to call 'half' functions from lua, convert real arguments from -- to half since there is no other defined conversion local transform_reals_to_half = function(func_name, real_args, ...) - t = {} + local t = {} -- this select logic is necessary to deal with nil arguments for i = 1, select('#', ...) do t[i] = select(i, ...) |