aboutsummaryrefslogtreecommitdiff
path: root/cumatrix_example.lua
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-05-22 12:13:37 +0800
committerDeterminant <[email protected]>2015-05-22 12:13:37 +0800
commit0b128e097d425418499ab2257c5448f14fec3215 (patch)
tree80adc5a54ef29abeb95bd0cdf59d1d19c4aa2023 /cumatrix_example.lua
parent8f18aaba322cf717b8805ebfcacb5a3108d3dda8 (diff)
...
Diffstat (limited to 'cumatrix_example.lua')
-rw-r--r--cumatrix_example.lua7
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)