diff options
author | Determinant <[email protected]> | 2015-05-22 12:13:37 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-05-22 12:13:37 +0800 |
commit | 0b128e097d425418499ab2257c5448f14fec3215 (patch) | |
tree | 80adc5a54ef29abeb95bd0cdf59d1d19c4aa2023 /cumatrix_example.lua | |
parent | 8f18aaba322cf717b8805ebfcacb5a3108d3dda8 (diff) |
...
Diffstat (limited to 'cumatrix_example.lua')
-rw-r--r-- | cumatrix_example.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cumatrix_example.lua b/cumatrix_example.lua index 26e1dc4..f8235eb 100644 --- a/cumatrix_example.lua +++ b/cumatrix_example.lua @@ -10,11 +10,14 @@ for i = 0, m - 1 do dm[i][j] = t end end --- print(fm) +print(fm) fs = fm:softmax() -- print(fs) --- print(dm) +print(dm) ds = dm:softmax() -- print(ds) +print(fs) print(fs + fs) +print(ds + ds) print(fs - fs) +print(ds - ds) |