diff options
author | Soumith Chintala <soumith@gmail.com> | 2016-07-27 07:58:57 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2016-07-27 07:58:57 +0300 |
commit | 63b4d2d60696965326d8bc226def74deb4c671f9 (patch) | |
tree | 4842f28a65960e88dff9cccb43f8e8818da0f5fe | |
parent | 1b7d3473be65285755d478da19d0b679a7acba71 (diff) |
type fix for forwardnodes
-rw-r--r-- | gmodule.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gmodule.lua b/gmodule.lua index 551baae..0a81da9 100644 --- a/gmodule.lua +++ b/gmodule.lua @@ -265,6 +265,12 @@ function gModule:type(type, tensorCache) end end + for i,node in ipairs(self.forwardnodes) do + if node.data.input ~= nil then + node.data.input = recursiveType(node.data.input, type) + end + end + self._type = type return self end |