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:
authorpaucarre <pau.carre@gmail.com>2017-05-03 16:09:43 +0300
committerpaucarre <pau.carre@gmail.com>2017-05-03 16:09:43 +0300
commit31003ac7e1ceab21355cfcb967ef20a031584868 (patch)
treea7b34e0e5e488580d4bdc86acff5a100e8cfd9f8 /MapTable.lua
parent22ffc4fcbe9e5f92cd812c7231c833da72165a49 (diff)
Added sharedparams default values in MapTable so that it is backwards compatible
Diffstat (limited to 'MapTable.lua')
-rw-r--r--MapTable.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/MapTable.lua b/MapTable.lua
index a5ca1d0..c79f1ea 100644
--- a/MapTable.lua
+++ b/MapTable.lua
@@ -10,6 +10,7 @@ function MapTable:__init(module, shared)
end
function MapTable:_extend(n)
+ self.sharedparams = self.sharedparams or {'weight', 'bias', 'gradWeight', 'gradBias'}
self.modules[1] = self.module
for i = 2, n do
if not self.modules[i] then