aboutsummaryrefslogtreecommitdiff
path: root/layer/window.lua
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-06-22 19:01:29 +0800
committerDeterminant <[email protected]>2015-06-22 19:01:29 +0800
commit2497fd9e7a0fae5ee4887890d7a312e0e08a93b8 (patch)
tree382f97575bd2df9ee6abb1662b11b279fc22d72b /layer/window.lua
parent196e9b48a3541caccdffc5743001cced70667091 (diff)
major change: use luarocks to manage project
Diffstat (limited to 'layer/window.lua')
-rw-r--r--layer/window.lua28
1 files changed, 0 insertions, 28 deletions
diff --git a/layer/window.lua b/layer/window.lua
deleted file mode 100644
index 4e9a3b1..0000000
--- a/layer/window.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-local WindowLayer = nerv.class("nerv.WindowLayer", "nerv.Layer")
-
-function WindowLayer:__init(id, global_conf, layer_conf)
- self.id = id
- self.gconf = global_conf
- self.window = layer_conf.window
- self.dim_in = layer_conf.dim_in
- self.dim_out = layer_conf.dim_out
- self:check_dim_len(1, 1)
-end
-
-function WindowLayer:init()
- if self.dim_in[1] ~= self.window.trans:ncol() then
- nerv.error("mismatching dimensions of input and window parameter")
- end
- if self.dim_out[1] ~= self.window.trans:ncol() then
- nerv.error("mismatching dimensions of output and window parameter")
- end
-end
-
-function WindowLayer:propagate(input, output)
- output[1]:copy_fromd(input[1])
- output[1]:scale_rows_by_row(self.window.trans)
-end
-
-function WindowLayer:get_params()
- return nerv.ParamRepo({self.window})
-end