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-18 13:39:21 +0400
committerIvo Danihelka <ivo@danihelka.net>2013-07-18 13:39:21 +0400
commit620e1cfb70ca291e577c2f5f1dd8550dd1dd2347 (patch)
treecb5cb998afb3009dd6523fa86198dcae11bfa371 /gmodule.lua
parent2c446d97c7725b22eee2b2f2db7b4e5e7aa9cf68 (diff)
Removed the ignoring of weird nodes.
Diffstat (limited to 'gmodule.lua')
-rw-r--r--gmodule.lua15
1 files changed, 3 insertions, 12 deletions
diff --git a/gmodule.lua b/gmodule.lua
index 1633c12..90321da 100644
--- a/gmodule.lua
+++ b/gmodule.lua
@@ -137,10 +137,7 @@ function gModule:runForwardFunction(func,input)
-- propagate the output to children
propagate(node,output)
else
- if self.verbose then
- print('weird node, skipping :)')
- print(node.data)
- end
+ error('weird node: ' .. node.data)
end
if self.verbose then
print(' V : ' .. node:label())
@@ -236,10 +233,7 @@ function gModule:updateGradInput(input,gradOutput)
table.insert(child.data.gradOutput,gi)
end
else
- if self.verbose then
- print('weird node, skipping :)')
- print(node.data)
- end
+ error('weird node: ' .. node.data)
end
if self.verbose then
print(' V : ' .. node:label())
@@ -310,10 +304,7 @@ function gModule:accGradParameters(input,gradOutput,lr)
-- accGradParameters through this node
module:accGradParameters(input,gradOutput,lr)
else
- if self.verbose then
- print('weird node, skipping :)')
- print(node.data)
- end
+ error('weird node: ' .. node.data)
end
if self.verbose then
print(' V : ' .. node:label())