summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-05-26 14:29:05 +0800
committerDeterminant <[email protected]>2015-05-26 14:29:05 +0800
commit676eb07afc1307c38c3b0089476f7cabe17cc72e (patch)
tree4719f01007722f4bc7d49bbe5682b8634b4bf97c
parent81bf2d653902860c5d28ccade19ac6e1fd56acaf (diff)
...
-rw-r--r--io/init.lua1
-rw-r--r--matrix/init.lua1
2 files changed, 1 insertions, 1 deletions
diff --git a/io/init.lua b/io/init.lua
index 2fa38e6..d96f062 100644
--- a/io/init.lua
+++ b/io/init.lua
@@ -25,4 +25,5 @@ function nerv.ParamFile:read_param(id)
local param = assert(loadstring("return " .. metadata.type .. "(" .. id .. ")"))()
param:set_info(metadata.info)
param:read(self:get_chunkdata(id))
+ return param
end
diff --git a/matrix/init.lua b/matrix/init.lua
index 08080a9..a3d778e 100644
--- a/matrix/init.lua
+++ b/matrix/init.lua
@@ -42,7 +42,6 @@ end
function nerv.CuMatrixFloat.new_from_host(mat)
local res = nerv.CuMatrixFloat(mat:nrow(), mat:ncol())
res:copy_from(mat)
- print(res)
return res
end