diff options
author | koray kavukcuoglu <koray@kavukcuoglu.org> | 2014-02-13 22:22:28 +0400 |
---|---|---|
committer | koray kavukcuoglu <koray@kavukcuoglu.org> | 2014-02-13 22:22:28 +0400 |
commit | 7c6475eaa525531e95518b45322803fb6dc07fb2 (patch) | |
tree | dc6b8095e2d37fb8c66aa701870b88f820e8e63b /gmodule.lua | |
parent | 439a3375c2d47a00e1902fae4938d766dcf2ea50 (diff) | |
parent | c6986b72856a0b93e710e6123d52f759ee7f8b96 (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.lua | 4 |
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 |