diff options
author | koray kavukcuoglu <koray@kavukcuoglu.org> | 2015-03-16 13:42:01 +0300 |
---|---|---|
committer | koray kavukcuoglu <koray@kavukcuoglu.org> | 2015-03-16 13:42:01 +0300 |
commit | 78c3649f7903454aa9043dcb8d639537c6d5f604 (patch) | |
tree | 9e6e1cd0dba49e5c7fb924b2f7656bed0292f2a9 /test | |
parent | bcc714d6b40cfe5be2dea4916412446b259f7601 (diff) | |
parent | 0e9f7d4e46b0a15f249b4045f86c9d4fbaf9dbcb (diff) |
Merge pull request #42 from yozw/debug-labels
Fixing problem with debug labels for nodes
Diffstat (limited to 'test')
-rw-r--r-- | test/test_nngraph.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_nngraph.lua b/test/test_nngraph.lua index b709cda..ac47be2 100644 --- a/test/test_nngraph.lua +++ b/test/test_nngraph.lua @@ -80,6 +80,14 @@ function test.test_twoInputs2() checkGradients(module, input) end +function test.test_splitDebugLabels() + local node = nn.Identity()() + node.data.annotations._debugLabel = "node" + local node1, node2 = node:split(2) + assert(node1.data.annotations._debugLabel == "node-1") + assert(node2.data.annotations._debugLabel == "node-2") +end + function test.test_identity() local in1 = nn.Identity()() local in2 = nn.Identity()() |