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-09-17 18:38:34 +0400
committerIvo Danihelka <ivo@danihelka.net>2013-09-17 18:38:34 +0400
commitf256d6b9699737f90437383ddf36d930d1267813 (patch)
treedb96102b67ddb9fde62da46d320225c4509a32e9
parent28ff66b48efbc8fa87a1fc082bbaceb8ae03896b (diff)
Checked unused inputs.0.1
-rw-r--r--gmodule.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/gmodule.lua b/gmodule.lua
index 20580d0..6639329 100644
--- a/gmodule.lua
+++ b/gmodule.lua
@@ -78,6 +78,7 @@ function gModule:__init(inputs,outputs)
assert(#self.fg:roots() == 1, "expecting only one start")
self.innode = self.fg:roots()[1]
assert(self.innode.data == innode.data, "expecting the forward innode")
+ assert(#self.innode.children == #inputs, "an input is unused")
self.outnode = outnode
self.verbose = false