summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2016-04-28 13:04:52 +0800
committerDeterminant <[email protected]>2016-04-28 13:04:52 +0800
commitb41943a5e6d006d364615df2ed77e8eae6286f3c (patch)
tree4a6f7090738c67cbc3275bedff026334a6385fbc
parent53d59b9fff59d657c024673a9a0b54b396feb8d6 (diff)
...
-rw-r--r--nerv/layer/affine.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/nerv/layer/affine.lua b/nerv/layer/affine.lua
index 2dd2dc0..b4358ca 100644
--- a/nerv/layer/affine.lua
+++ b/nerv/layer/affine.lua
@@ -1,16 +1,6 @@
--- Contains parameter and layer classes related to linear (or affine)
-- transform.
---- The class for linear transform parameter.
--- @type nerv.LinearTransParam
-
-local LinearTransParam = nerv.class('nerv.LinearTransParam', 'nerv.MatrixParam')
-
---- The class for bias parameter (currently implemented as a one-row matrix).
--- @type nerv.BiasParam
-
-local BiasParam = nerv.class('nerv.BiasParam', 'nerv.MatrixParam')
-
--- The class for all matrix-based parameters. The class has a single matrix
-- which can be accessed by `self.trans`.
-- @type nerv.MatrixParam
@@ -174,3 +164,13 @@ function AffineLayer:get_params()
end
return pr
end
+
+--- The class for linear transform parameter.
+-- @type nerv.LinearTransParam
+
+local LinearTransParam = nerv.class('nerv.LinearTransParam', 'nerv.MatrixParam')
+
+--- The class for bias parameter (currently implemented as a one-row matrix).
+-- @type nerv.BiasParam
+
+local BiasParam = nerv.class('nerv.BiasParam', 'nerv.MatrixParam')