forked from Rust-related/luminal
Update README.md
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user