aboutsummaryrefslogtreecommitdiff
path: root/layer/init.lua
diff options
context:
space:
mode:
authorcloudygoose <[email protected]>2015-06-21 10:50:46 +0800
committercloudygoose <[email protected]>2015-06-21 10:50:46 +0800
commitad2c4013dec71667d6bbd5e9a249df2085208507 (patch)
tree474c536ff4a7d757bb61915a1bfc7a073f40d09f /layer/init.lua
parent839d938df0d83ec311c5d1299923c667adff6a87 (diff)
parentf3f4e74eb4dbb8829e5ee136ba4b0c0a7938b551 (diff)
Merge upstream 'parameter update big-change'.
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'layer/init.lua')
-rw-r--r--layer/init.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/layer/init.lua b/layer/init.lua
index 169427d..e39af94 100644
--- a/layer/init.lua
+++ b/layer/init.lua
@@ -15,11 +15,15 @@ function Param:set_info(info)
self.info = info
end
-function Param:read(pfhandle)
+function Param:read(handle)
nerv.error_method_not_implemented()
end
-function Param:write(pfhandle)
+function Param:write(handle)
+ nerv.error_method_not_implemented()
+end
+
+function Param:update(gradient)
nerv.error_method_not_implemented()
end
@@ -29,7 +33,7 @@ function Layer:__init(id, global_conf, layer_conf)
nerv.error_method_not_implemented()
end
-function Layer:init()
+function Layer:init(batch_size)
nerv.error_method_not_implemented()
end
@@ -41,7 +45,7 @@ function Layer:propagate(input, output)
nerv.error_method_not_implemented()
end
-function Layer:back_propagate(next_bp_err, bp_err, input, output)
+function Layer:back_propagate(bp_err, next_bp_err, input, output)
nerv.error_method_not_implemented()
end