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:
authorSoumith Chintala <soumith@gmail.com>2016-07-27 07:58:57 +0300
committerSoumith Chintala <soumith@gmail.com>2016-07-27 07:58:57 +0300
commit63b4d2d60696965326d8bc226def74deb4c671f9 (patch)
tree4842f28a65960e88dff9cccb43f8e8818da0f5fe
parent1b7d3473be65285755d478da19d0b679a7acba71 (diff)
type fix for forwardnodes
-rw-r--r--gmodule.lua6
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