!10232 c++ library isolate tbe process as default

From: @zhoufeng54
Reviewed-by: @kisnwang,@chujinjin
Signed-off-by: @chujinjin
pull/10232/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit ef0b483eb4

@ -151,10 +151,6 @@ Buffer ModelConverter::BuildAirModel(const transform::DfGraphPtr &graph,
}
Buffer ModelConverter::LoadMindIR(const FuncGraphPtr &func_graph) {
if (!PythonIsInited()) {
MS_LOG_INFO << "Call LoadMindIRInner directly";
return LoadMindIRInner(func_graph);
}
MultiProcess multi_process;
Buffer buffer_ret;
auto parent_process = [&func_graph, &buffer_ret, this](MultiProcess *multi_process) -> Status {
@ -227,10 +223,6 @@ Buffer ModelConverter::LoadMindIR(const FuncGraphPtr &func_graph) {
}
Buffer ModelConverter::LoadAscendIR(const Buffer &model_data) {
if (!PythonIsInited()) {
MS_LOG_INFO << "Call LoadAscendIRInner directly";
return LoadAscendIRInner(model_data);
}
MultiProcess multi_process;
Buffer buffer_ret;
auto parent_process = [&model_data, &buffer_ret](MultiProcess *multi_process) -> Status {

Loading…
Cancel
Save