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:
authorJonathan Tompson <jonathantompson@gmail.com>2016-06-07 18:44:11 +0300
committerSoumith Chintala <soumith@gmail.com>2016-06-07 18:44:11 +0300
commit1b7d3473be65285755d478da19d0b679a7acba71 (patch)
treedefa1fd1c6af81c7e69c015dc02bde393ae20faa
parent531a0636093de27e29771e513180b120a95889ae (diff)
Quick fix for type. (#118)
-rw-r--r--gmodule.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/gmodule.lua b/gmodule.lua
index 7bdd13d..551baae 100644
--- a/gmodule.lua
+++ b/gmodule.lua
@@ -260,7 +260,8 @@ function gModule:type(type, tensorCache)
for i,node in ipairs(self.backwardnodes) do
if node.data.gradOutputBuffer ~= nil then
- node.data.gradOutputBuffer = node.data.gradOutputBuffer:type(type)
+ node.data.gradOutputBuffer =
+ recursiveType(node.data.gradOutputBuffer, type)
end
end