Update README.md

This commit is contained in:
Joe Fioti
2024-07-25 15:32:54 -05:00
committed by GitHub
parent 81db899306
commit fe8eb971d5

View File

@@ -15,7 +15,7 @@ use luminal::prelude::*;
// Setup graph and tensors // Setup graph and tensors
let mut cx = Graph::new(); let mut cx = Graph::new();
let a = cx.tensor((3, 1)).set([[1.0], [2.0], [3.0]]); let a = cx.tensor((3, 1)).set([[1.0], [2.0], [3.0]]);
let b = cx.tensor((1, 4).set([[1.0, 2.0, 3.0, 4.0]]); let b = cx.tensor((1, 4)).set([[1.0, 2.0, 3.0, 4.0]]);
// Do math... // Do math...
let mut c = a.matmul(b).retrieve(); let mut c = a.matmul(b).retrieve();