| @@ -1158,7 +1158,6 @@ Status GeGenerator::Impl::BuildModel(const Graph &graph, const vector<GeTensor> | |||||
| if (ret != SUCCESS) { | if (ret != SUCCESS) { | ||||
| REPORT_CALL_ERROR("E19999", "build graph failed, graph id:%u, ret:%d", graph_id, ret); | REPORT_CALL_ERROR("E19999", "build graph failed, graph id:%u, ret:%d", graph_id, ret); | ||||
| GELOGE(GE_GENERATOR_GRAPH_MANAGER_BUILD_GRAPH_FAILED, "[Build][Graph] fail, graph id: %u", graph_id); | GELOGE(GE_GENERATOR_GRAPH_MANAGER_BUILD_GRAPH_FAILED, "[Build][Graph] fail, graph id: %u", graph_id); | ||||
| ret = GE_GENERATOR_GRAPH_MANAGER_BUILD_GRAPH_FAILED; | |||||
| } | } | ||||
| RtContextUtil::GetInstance().DestroyRtContexts(session_id); | RtContextUtil::GetInstance().DestroyRtContexts(session_id); | ||||
| @@ -275,7 +275,7 @@ Status GraphMemoryAssigner::ReAssignMemory(bool is_loop_graph, map<uint64_t, siz | |||||
| "E19022", std::vector<std::string>({"size", "item", "maxsize"}), | "E19022", std::vector<std::string>({"size", "item", "maxsize"}), | ||||
| std::vector<std::string>({std::to_string(total_mem_offset), "featuremap", | std::vector<std::string>({std::to_string(total_mem_offset), "featuremap", | ||||
| std::to_string(VarManager::Instance(session_id)->GetGraphMemoryMaxSize())})); | std::to_string(VarManager::Instance(session_id)->GetGraphMemoryMaxSize())})); | ||||
| return ge::FAILED; | |||||
| return ACL_ERROR_GE_MEMORY_ALLOCATION; | |||||
| } | } | ||||
| return SUCCESS; | return SUCCESS; | ||||
| } | } | ||||
| @@ -29,9 +29,10 @@ Status MemoryAssigner::AssignMemory(bool is_loop_graph, map<uint64_t, size_t> &m | |||||
| } | } | ||||
| // Reassign memory for special nodes | // Reassign memory for special nodes | ||||
| if (graph_mem_assigner.ReAssignMemory(is_loop_graph, mem_offset) != ge::SUCCESS) { | |||||
| Status ret = graph_mem_assigner.ReAssignMemory(is_loop_graph, mem_offset) | |||||
| if (ret != ge::SUCCESS) { | |||||
| GELOGE(ge::FAILED, "[ReAssign][Memory] failed, graph:%s", compute_graph_->GetName().c_str()); | GELOGE(ge::FAILED, "[ReAssign][Memory] failed, graph:%s", compute_graph_->GetName().c_str()); | ||||
| return ge::FAILED; | |||||
| return ret; | |||||
| } | } | ||||
| // Assign memory (block and offset) for zero copy nodes | // Assign memory (block and offset) for zero copy nodes | ||||
| @@ -1381,8 +1381,8 @@ Status GraphManager::BuildGraph(const GraphId &graph_id, const std::vector<GeTen | |||||
| ret = StartForRunGraph(graph_node, inputs, ge_root_model, session_id); | ret = StartForRunGraph(graph_node, inputs, ge_root_model, session_id); | ||||
| graph_node->SetRunFlag(false); | graph_node->SetRunFlag(false); | ||||
| if (ret != SUCCESS) { | if (ret != SUCCESS) { | ||||
| GELOGE(GE_GRAPH_PRERUN_FAILED, "[Call][StartForRunGraph] failed! graph_id:%u.", graph_id); | |||||
| return GE_GRAPH_PRERUN_FAILED; | |||||
| GELOGE(ret, "[Call][StartForRunGraph] failed! graph_id:%u.", graph_id); | |||||
| return ret; | |||||
| } | } | ||||
| GELOGI("[BuildGraph] build graph success, graph_id=%u.", graph_id); | GELOGI("[BuildGraph] build graph success, graph_id=%u.", graph_id); | ||||
| @@ -89,7 +89,8 @@ map<string, DataType> kDataTypeDict = { | |||||
| {"float", DT_FLOAT}, | {"float", DT_FLOAT}, | ||||
| {"float32", DT_FLOAT}, | {"float32", DT_FLOAT}, | ||||
| {"double", DT_DOUBLE}, | {"double", DT_DOUBLE}, | ||||
| {"complex64", DT_COMPLEX64} | |||||
| {"complex64", DT_COMPLEX64}, | |||||
| {"complex128", DT_COMPLEX128} | |||||
| }; | }; | ||||
| map<string, Format> kFormatDict = { | map<string, Format> kFormatDict = { | ||||