Working out with GIL

parent 1257136f
Pipeline #29917 passed with stage
in 23 minutes and 26 seconds
......@@ -407,8 +407,9 @@ static PyObject* PyBobLearnEMKMeansTrainer_e_step(PyBobLearnEMKMeansTrainerObjec
return 0;
}
auto gstate = PyGILState_Ensure();
self->cxx->eStep(*kmeans_machine->cxx, *PyBlitzArrayCxx_AsBlitz<double,2>(data));
PyGILState_Release(gstate);
BOB_CATCH_MEMBER("cannot perform the e_step method", 0)
......
......@@ -258,7 +258,9 @@ static PyObject* PyBobLearnEMMLGMMTrainer_e_step(PyBobLearnEMMLGMMTrainerObject*
return 0;
}
auto gstate = PyGILState_Ensure();
self->cxx->eStep(*gmm_machine->cxx, *PyBlitzArrayCxx_AsBlitz<double,2>(data));
PyGILState_Release(gstate);
BOB_CATCH_MEMBER("cannot perform the e_step method", 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment