diff options
author | Determinant <[email protected]> | 2015-05-30 20:52:05 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-05-30 20:52:05 +0800 |
commit | 5edaa7d5649a2e124496159f7e8a14edab4f7484 (patch) | |
tree | d880fd9587acb87701921583ada3b6aae65bbbda /layer/affine.lua | |
parent | f10330fd95aa87cf6b21d292cf54c77bacfd2e40 (diff) |
rename param file to chunk file (intend to generalize it)
Diffstat (limited to 'layer/affine.lua')
-rw-r--r-- | layer/affine.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layer/affine.lua b/layer/affine.lua index 97703a8..d88813e 100644 --- a/layer/affine.lua +++ b/layer/affine.lua @@ -3,7 +3,8 @@ local BiasParam = nerv.class('nerv.BiasParam', 'nerv.LinearTransParam') local AffineLayer = nerv.class('nerv.AffineLayer', 'nerv.Layer') function LinearTransParam:read(pcdata) - self.trans = nerv.CuMatrixFloat.new_from_host(nerv.MMatrixFloat.load(pcdata)) + self.trans = self.gconf.mat_type.new_from_host( + nerv.MMatrixFloat.load(pcdata)) end function LinearTransParam:write(pfhandle) |