diff options
author | Determinant <[email protected]> | 2016-03-11 17:35:13 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2016-03-11 17:35:13 +0800 |
commit | 13729e83219cd90e33f329c49a50f6f4a4420721 (patch) | |
tree | cf5c43f1ddad7bc2430ea8191f943b0783e5fc2c /nerv/layer/gru.lua | |
parent | a32195e3e2ae9ca0f0c7a82e73e6bddb64568c05 (diff) | |
parent | a54332ce81129e81fbb1d041ec41aa5955868c5e (diff) |
Merge branch 'liuq901-master'
Diffstat (limited to 'nerv/layer/gru.lua')
-rw-r--r-- | nerv/layer/gru.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nerv/layer/gru.lua b/nerv/layer/gru.lua index a590a67..71718d7 100644 --- a/nerv/layer/gru.lua +++ b/nerv/layer/gru.lua @@ -13,7 +13,7 @@ function GRULayer:__init(id, global_conf, layer_conf) -- prepare a DAGLayer to hold the lstm structure local pr = layer_conf.pr if pr == nil then - pr = nerv.ParamRepo(nil, self.loc_type) + pr = nerv.ParamRepo({}, self.loc_type) end local function ap(str) @@ -102,7 +102,7 @@ end function GRULayer:bind_params() local pr = layer_conf.pr if pr == nil then - pr = nerv.ParamRepo(nil, self.loc_type) + pr = nerv.ParamRepo({}, self.loc_type) end self.lrepo:rebind(pr) end |