aboutsummaryrefslogtreecommitdiff
path: root/examples/cumatrix_from_mmatrix.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cumatrix_from_mmatrix.lua')
-rw-r--r--examples/cumatrix_from_mmatrix.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/cumatrix_from_mmatrix.lua b/examples/cumatrix_from_mmatrix.lua
index fba8a90..964d008 100644
--- a/examples/cumatrix_from_mmatrix.lua
+++ b/examples/cumatrix_from_mmatrix.lua
@@ -19,5 +19,9 @@ fc:copy_from(fm)
dc:copy_from(dm)
print(fc)
print(dc)
-print(fc:softmax())
-print(dc:softmax())
+sfc = fc:create()
+sdc = dc:create()
+sfc:softmax(fc)
+print(sfc)
+sdc:softmax(dc)
+print(sdc)