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:
authorkoray kavukcuoglu <koray@kavukcuoglu.org>2014-02-13 22:22:28 +0400
committerkoray kavukcuoglu <koray@kavukcuoglu.org>2014-02-13 22:22:28 +0400
commit7c6475eaa525531e95518b45322803fb6dc07fb2 (patch)
treedc6b8095e2d37fb8c66aa701870b88f820e8e63b /gmodule.lua
parent439a3375c2d47a00e1902fae4938d766dcf2ea50 (diff)
parentc6986b72856a0b93e710e6123d52f759ee7f8b96 (diff)
Merge pull request #20 from fidlej/topic_mapindex_label
Displayed the node ids of the input nodes in the mapindex
Diffstat (limited to 'gmodule.lua')
-rw-r--r--gmodule.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/gmodule.lua b/gmodule.lua
index e8cc1b2..618364c 100644
--- a/gmodule.lua
+++ b/gmodule.lua
@@ -93,6 +93,10 @@ function gModule:__init(inputs,outputs)
forwardNode.data.nSplitOutputs))
end
end
+ -- Adding data.forwardNodeId for nicer node:label() output.
+ for i,forwardNode in ipairs(self.forwardnodes) do
+ forwardNode.data.forwardNodeId = forwardNode.id
+ end
self.output = nil
self.gradInput = nil