projects
/
dagnn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd1aa6a
)
Test DAG:setLabel()
author
Francois Fleuret
<francois@fleuret.org>
Mon, 16 Jan 2017 06:39:43 +0000
(07:39 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Mon, 16 Jan 2017 06:39:43 +0000
(07:39 +0100)
test-dagnn.lua
patch
|
blob
|
history
diff --git
a/test-dagnn.lua
b/test-dagnn.lua
index
cec37d2
..
2db93c6
100755
(executable)
--- a/
test-dagnn.lua
+++ b/
test-dagnn.lua
@@
-99,6
+99,8
@@
dag:connect(b, nn.Linear(10, 15), nn.ReLU(), d)
dag:connect(c, d)
dag:connect(c, e)
+dag:setLabel(a, 'first module')
+
dag:setInput(a)
dag:setOutput({ d, e })
@@
-134,3
+136,5
@@
model:clearState()
torch.save('/tmp/test.t7', model)
local otherModel = torch.load('/tmp/test.t7')
print('Gradient estimate error ' .. checkGrad(otherModel, criterion, input, output, epsilon))
+
+dag:print()