diff options
author | paucarre <pau.carre@gmail.com> | 2017-05-03 16:09:43 +0300 |
---|---|---|
committer | paucarre <pau.carre@gmail.com> | 2017-05-03 16:09:43 +0300 |
commit | 31003ac7e1ceab21355cfcb967ef20a031584868 (patch) | |
tree | a7b34e0e5e488580d4bdc86acff5a100e8cfd9f8 /MapTable.lua | |
parent | 22ffc4fcbe9e5f92cd812c7231c833da72165a49 (diff) |
Added sharedparams default values in MapTable so that it is backwards compatible
Diffstat (limited to 'MapTable.lua')
-rw-r--r-- | MapTable.lua | 1 |
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 |