diff options
Diffstat (limited to 'nerv/layer/duplicate.lua')
-rw-r--r-- | nerv/layer/duplicate.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/nerv/layer/duplicate.lua b/nerv/layer/duplicate.lua index 8988617..137472b 100644 --- a/nerv/layer/duplicate.lua +++ b/nerv/layer/duplicate.lua @@ -1,10 +1,7 @@ local DuplicateLayer = nerv.class('nerv.DuplicateLayer', 'nerv.Layer') function DuplicateLayer:__init(id, global_conf, layer_conf) - self.id = id - self.dim_in = layer_conf.dim_in - self.dim_out = layer_conf.dim_out - self.gconf = global_conf + nerv.Layer.__init(self, id, global_conf, layer_conf) self:check_dim_len(1, -1) if #self.dim_out < 1 then nerv.error('no output specified') @@ -40,5 +37,5 @@ function DuplicateLayer:update() end function DuplicateLayer:get_params() - return nerv.ParamRepo({}) + return nerv.ParamRepo({}, self.loc_type) end |