mirror of
https://github.com/ml-explore/mlx.git
synced 2025-11-03 18:18:15 +08:00
basic compile scaffold works
This commit is contained in:
@@ -14,4 +14,7 @@ TEST_CASE("test simple compile") {
|
||||
auto compfn = compile(simple_fun);
|
||||
auto out = compfn({array(1.0), array(2.0)})[0];
|
||||
CHECK_EQ(out.item<float>(), 3.0f);
|
||||
|
||||
out = compfn({array(1.0), array(2.0)})[0];
|
||||
CHECK_EQ(out.item<float>(), 3.0f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user