mirror of
https://github.com/ml-explore/mlx.git
synced 2025-11-03 18:18:15 +08:00
enable and disable compiler
This commit is contained in:
@@ -96,3 +96,11 @@ TEST_CASE("test nested compile") {
|
||||
out = cfun({array(1), array(2)})[0];
|
||||
CHECK_EQ(out.item<int>(), 9);
|
||||
}
|
||||
|
||||
TEST_CASE("test enable and disable compile") {
|
||||
CHECK_THROWS(compile(nullptr));
|
||||
disable_compiler();
|
||||
compile(nullptr);
|
||||
enable_compiler();
|
||||
CHECK_THROWS(compile(nullptr));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user