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:
authorIvo Danihelka <ivo@danihelka.net>2013-07-19 21:35:13 +0400
committerIvo Danihelka <ivo@danihelka.net>2013-07-19 21:35:13 +0400
commit507d096aa3b3e4d1d4401af1985a4c381f0014e6 (patch)
tree6e2bc363f92cb347f180ea8e9f4cab2cfb29ed88 /gmodule.lua
parent3edb7e840054235334509ca4b588f1da5eaddff0 (diff)
Disallowed to split a tensor.
Diffstat (limited to 'gmodule.lua')
-rw-r--r--gmodule.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/gmodule.lua b/gmodule.lua
index 6063418..31b0857 100644
--- a/gmodule.lua
+++ b/gmodule.lua
@@ -126,6 +126,7 @@ function gModule:runForwardFunction(func,input)
assert(not node.data.module, "the selectindex-handling nodes should have no module")
local input = node.data.input
assert(#input == 1, "only the splitted node should be the input")
+ assert(istable(input[1]), "the input for a split should be a table")
input = input[1][node.data.selectindex]
propagate(node,input)
else