From c13115662e739b434f1071eb623a41a39d8b4985 Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 28 May 2015 14:31:31 +0800 Subject: should support multiple input/output for layers --- matrix/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'matrix') diff --git a/matrix/init.lua b/matrix/init.lua index a04e83a..0075668 100644 --- a/matrix/init.lua +++ b/matrix/init.lua @@ -41,12 +41,12 @@ end function nerv.CuMatrixFloat.new_from_host(mat) local res = nerv.CuMatrixFloat(mat:nrow(), mat:ncol()) - res:copy_from(mat) + res:copy_fromh(mat) return res end function nerv.CuMatrixFloat:new_to_host() local res = nerv.MMatrixFloat(self:nrow(), self:ncol()) - self:copy_to(res) + self:copy_toh(res) return res end -- cgit v1.2.3-70-g09d2