From ad6fa788f1b2e88167407922f18118cf905eecaf Mon Sep 17 00:00:00 2001 From: txh18 Date: Tue, 26 May 2015 15:14:37 +0800 Subject: added nerv_matrix_(get_dataref_value) and tested in examples/mmatrix_example, however it is a little strange to return 101 --- examples/mmatrix_example.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/mmatrix_example.lua') diff --git a/examples/mmatrix_example.lua b/examples/mmatrix_example.lua index 679fde3..53b7fed 100644 --- a/examples/mmatrix_example.lua +++ b/examples/mmatrix_example.lua @@ -10,6 +10,7 @@ for i = 0, m - 1 do dm[i][j] = t end end +print("test fm:get_dataref_value:", fm:get_dataref_value()) print(fm) -- print(fm:softmax()) print(dm) -- cgit v1.2.3 From be67a3a973bd58eff23af7add83e328c1f58451c Mon Sep 17 00:00:00 2001 From: txh18 Date: Tue, 26 May 2015 15:23:53 +0800 Subject: ... --- examples/mmatrix_example.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/mmatrix_example.lua') diff --git a/examples/mmatrix_example.lua b/examples/mmatrix_example.lua index 53b7fed..8ddfe84 100644 --- a/examples/mmatrix_example.lua +++ b/examples/mmatrix_example.lua @@ -11,6 +11,9 @@ for i = 0, m - 1 do end end print("test fm:get_dataref_value:", fm:get_dataref_value()) +print("forced a garbade collect") +collectgarbage("collect") +print("test fm:get_dataref_value:", fm:get_dataref_value()) print(fm) -- print(fm:softmax()) print(dm) -- cgit v1.2.3