Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/nn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Lerer <alerer@fb.com>2015-06-25 00:44:29 +0300
committerAdam Lerer <alerer@fb.com>2015-09-04 10:00:01 +0300
commitdd9d7fd996a476ef0af0e39b7039a761745df943 (patch)
treeec7586422a8baf12e9e3c28bdd34229e1f444651 /FlattenTable.lua
parentbab75d48973ce1767a575fa971a2fb9dc7363ff4 (diff)
nn.Module preserve type sharing semantics (#187); add nn.Module.apply
Diffstat (limited to 'FlattenTable.lua')
-rw-r--r--FlattenTable.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/FlattenTable.lua b/FlattenTable.lua
index 3a88588..69abd07 100644
--- a/FlattenTable.lua
+++ b/FlattenTable.lua
@@ -94,7 +94,7 @@ function FlattenTable:updateGradInput(input, gradOutput)
return self.gradInput
end
-function FlattenTable:type(type)
+function FlattenTable:type(type, tensorCache)
-- This function just stores references so we don't need to do any type
-- conversions. Just force the tables to be empty.
self.output = {}