提交 c2580621 编写于 作者: J jjfeing

fix bug when reset taskinfo core dump

上级 f89d0819
......@@ -245,7 +245,10 @@ void ParallelBuildManager::ResetTaskInfo() {
}
task_map_.clear();
same_op_list_.clear();
(void)PyObject_CallMethod(tbe_parallel_compiler_, kResetTaskInfo, "O");
if (tbe_parallel_compiler_ != nullptr) {
PyObject *pArg = Py_BuildValue("()");
(void)PyObject_CallMethod(tbe_parallel_compiler_, kResetTaskInfo, "O", pArg);
}
}
} // namespace kernel
} // namespace mindspore
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册