Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/cunn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoumith <soumith@fb.com>2017-02-15 15:10:43 +0300
committersoumith <soumith@fb.com>2017-02-15 15:18:43 +0300
commit618f847d94ad65baef1c1614ed241d6e4bea7151 (patch)
treeb080b2c75ab2eee34efca5b96ff09fccce5e892e /THCUNN.lua
parent251fcbfaf9a0acbf5ef8799c7f22e8b302fd6c76 (diff)
add local
Diffstat (limited to 'THCUNN.lua')
-rw-r--r--THCUNN.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/THCUNN.lua b/THCUNN.lua
index 6776a23..573690b 100644
--- a/THCUNN.lua
+++ b/THCUNN.lua
@@ -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, ...)