提交 d19a6379 编写于 作者: M Megvii Engine Team

fix(python_module): hold GIL during _get_serialized_dtype

GitOrigin-RevId: 6b7288bd0c72af0dd163e3cbee9c9869871c764b
上级 ff341cb1
......@@ -125,6 +125,7 @@ struct _OptimizeForInferenceOptions {
}
PyObject* _get_serialized_dtype(PyObject *dtype) {
PYTHON_GIL;
std::string sdtype;
auto write = [&sdtype](const void* data, size_t size) {
auto pos = sdtype.size();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册