diff options
author | Ivo Danihelka <ivo@danihelka.net> | 2013-07-19 21:35:13 +0400 |
---|---|---|
committer | Ivo Danihelka <ivo@danihelka.net> | 2013-07-19 21:35:13 +0400 |
commit | 507d096aa3b3e4d1d4401af1985a4c381f0014e6 (patch) | |
tree | 6e2bc363f92cb347f180ea8e9f4cab2cfb29ed88 /gmodule.lua | |
parent | 3edb7e840054235334509ca4b588f1da5eaddff0 (diff) |
Disallowed to split a tensor.
Diffstat (limited to 'gmodule.lua')
-rw-r--r-- | gmodule.lua | 1 |
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 |