aboutsummaryrefslogtreecommitdiff
path: root/nerv/layer/graph.lua
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2016-03-26 15:23:58 +0800
committerDeterminant <ted.sybil@gmail.com>2016-03-26 15:23:58 +0800
commit86dbfcfd490ce3f8fd4591b0950fbea7f1826c70 (patch)
treeb14298e8a020ab110af8cf667e1bb7c01bea693c /nerv/layer/graph.lua
parent38a2afc7d9c50859e99e09f4f64af3a4254f6f37 (diff)
fix "not implemented" and lstm rebinding bugsalpha-3.1
Diffstat (limited to 'nerv/layer/graph.lua')
-rw-r--r--nerv/layer/graph.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/nerv/layer/graph.lua b/nerv/layer/graph.lua
index ddbc85e..5790f95 100644
--- a/nerv/layer/graph.lua
+++ b/nerv/layer/graph.lua
@@ -2,7 +2,8 @@ local GraphLayer = nerv.class('nerv.GraphLayer', 'nerv.Layer')
function GraphLayer:__init(id, global_conf, layer_conf)
nerv.Layer.__init(self, id, global_conf, layer_conf)
- self:graph_init(layer_conf.layer_repo, layer_conf.connections)
+ self.lrepo = layer_conf.layer_repo
+ self:graph_init(self.lrepo, layer_conf.connections)
end
local function parse_id(str)
@@ -164,3 +165,7 @@ function GraphLayer:get_params()
end
return nerv.ParamRepo.merge(param_repos, self.loc_type)
end
+
+function GraphLayer:bind_params()
+ self.lrepo:rebind(self.lconf.pr)
+end