aboutsummaryrefslogtreecommitdiff
path: root/layer
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-05-26 16:59:25 +0800
committerDeterminant <[email protected]>2015-05-26 16:59:25 +0800
commitfd389b72623dcb44009076c3819a74a79b6f94be (patch)
tree037b2c0e2588e7236578bcf35d8bb08412877c5c /layer
parent565de7961df25daa3fb437bc7aac0303270387bf (diff)
add add_row for cumatrix
Diffstat (limited to 'layer')
-rw-r--r--layer/affine.lua14
-rw-r--r--layer/init.lua2
2 files changed, 15 insertions, 1 deletions
diff --git a/layer/affine.lua b/layer/affine.lua
index d5c50fc..5f1b4ce 100644
--- a/layer/affine.lua
+++ b/layer/affine.lua
@@ -9,3 +9,17 @@ end
function LinearTransParam:write(pfhandle)
self.trans:new_to_host():save(pfhandle)
end
+
+function AffineLayer:__init(id, ltp, bp)
+ self.ltp = ltp
+ self.bp = bp
+end
+
+function nerv.AffineLayer:update(input, output)
+end
+
+function nerv.AffineLayer:propagate(input, output)
+end
+
+function nerv.AffineLayer:back_propagate(input, output)
+end
diff --git a/layer/init.lua b/layer/init.lua
index c57a405..62a2924 100644
--- a/layer/init.lua
+++ b/layer/init.lua
@@ -24,7 +24,7 @@ end
local Layer = nerv.class('nerv.Layer')
-function nerv.Layer:_init(param)
+function nerv.Layer:_init(id, ...)
nerv.error_method_not_implemented()
end