aboutsummaryrefslogtreecommitdiff
path: root/nerv/test/matrix_func.lua
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2016-05-01 00:44:43 +0800
committerDeterminant <ted.sybil@gmail.com>2016-05-01 00:44:43 +0800
commit34fe366898bc48b4e1ad6fa945dad8821857a459 (patch)
tree1210e1a28dd4c0f6e1cefe0b98c95b333ceec158 /nerv/test/matrix_func.lua
parent2bb64ecc5e0350f89cff1e978a1b8dcca1528a06 (diff)
parent1aaffa6b9a56d4d580dea7bf3f1b7df1eec5da2f (diff)
Merge branch 'master' of ssh://speechlab.sjtu.edu.cn:8022/nerv-dev/nerv
Diffstat (limited to 'nerv/test/matrix_func.lua')
-rw-r--r--nerv/test/matrix_func.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/nerv/test/matrix_func.lua b/nerv/test/matrix_func.lua
index 817d463..90bb27f 100644
--- a/nerv/test/matrix_func.lua
+++ b/nerv/test/matrix_func.lua
@@ -164,6 +164,9 @@ function _test_all_shape(mat_type, m, n, k, fill)
local c = a:create()
c:tanh(a)
print(c)
+ a:add(a, c, 1.0, -3.0)
+ c:relu(a)
+ print(c)
end
function test_all(mat_type)
_test_all_shape(mat_type, 3, 4, 2, _pattern_fill)