未验证 提交 c7cb7eec 编写于 作者: Y Yuang Liu 提交者: GitHub

[fleet_executor] fix python gil problem (#37882)

上级 828f87ae
......@@ -33,7 +33,8 @@ void BindFleetExecutor(py::module* m) {
py::class_<FleetExecutor>(*m, "FleetExecutor")
.def(py::init<const std::string&>())
.def("init", &FleetExecutor::Init)
.def("run", &FleetExecutor::Run);
.def("run", &FleetExecutor::Run,
py::call_guard<py::gil_scoped_release>());
py::class_<TaskNode>(*m, "TaskNode")
.def(py::init<const framework::ProgramDesc&, int64_t, int64_t, int64_t>())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册