No gil eval (#565)

This commit is contained in:
Angelos Katharopoulos
2024-01-26 22:03:52 -08:00
committed by GitHub
parent 8993382aaa
commit 37d98ba6ff
3 changed files with 40 additions and 19 deletions

View File

@@ -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