mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-15 01:19:21 +08:00
No gil eval (#565)
This commit is contained in:
committed by
GitHub
parent
8993382aaa
commit
37d98ba6ff
@@ -509,7 +509,10 @@ void init_transforms(py::module_& m) {
|
||||
"eval",
|
||||
[](const py::args& args) {
|
||||
std::vector<array> arrays = tree_flatten(args);
|
||||
eval(arrays);
|
||||
{
|
||||
py::gil_scoped_release nogil;
|
||||
eval(arrays);
|
||||
}
|
||||
},
|
||||
R"pbdoc(
|
||||
eval(*args) -> None
|
||||
|
||||
Reference in New Issue
Block a user