mirror of
https://github.com/ml-explore/mlx.git
synced 2025-11-04 02:28:13 +08:00
simplify tests use compile now
This commit is contained in:
@@ -836,8 +836,5 @@ void init_transforms(py::module_& m) {
|
||||
|
||||
// Register static Python object cleanup before the interpreter exits
|
||||
auto atexit = py::module_::import("atexit");
|
||||
atexit.attr("register")(py::cpp_function([]() {
|
||||
detail::compile_clear();
|
||||
tree_cache().clear();
|
||||
}));
|
||||
atexit.attr("register")(py::cpp_function([]() { tree_cache().clear(); }));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user