cxx library isolate tbe process as default

Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
This commit is contained in:
zhoufeng 2020-12-19 15:50:28 +08:00
parent 8dfd9fb96c
commit 8f0907efd0
1 changed files with 0 additions and 8 deletions

View File

@ -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 {