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

github.com/torch/nngraph.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node.lua')
-rw-r--r--node.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/node.lua b/node.lua
index f9e893e..0f2261f 100644
--- a/node.lua
+++ b/node.lua
@@ -55,6 +55,8 @@ function nnNode:split(noutput)
node:add(mnode,true)
table.insert(selectnodes,node)
end
+
+ local unpack = unpack or table.unpack -- Lua52 compat
return unpack(selectnodes)
end