|
|
|
@@ -142,7 +142,7 @@ ge::Status CheckFpCeilingMode() { |
|
|
|
GELOGI("The parameter fp_ceiling_mode is set to %s.", mode.c_str()); |
|
|
|
return ge::SUCCESS; |
|
|
|
} |
|
|
|
GELOGW("The parameter fp_ceiling_mode is not set."); |
|
|
|
GELOGW("The parameter fp_ceiling_mode is not set"); |
|
|
|
return ge::SUCCESS; |
|
|
|
} |
|
|
|
} // namespace |
|
|
|
@@ -295,7 +295,7 @@ Status GraphManager::InitDynamicParams(ComputeGraphPtr &compute_graph) { |
|
|
|
return FAILED; |
|
|
|
} |
|
|
|
if ((op_desc->GetType() == DATA) || (op_type == kGetNextName)) { |
|
|
|
GELOGI("Need to process multi batch for compute graph. op_type:%s", op_desc->GetType().c_str()); |
|
|
|
GELOGI("Need to process multi batch for compute graph. op_type:%s.", op_desc->GetType().c_str()); |
|
|
|
GetLocalOmgContext().need_multi_batch = true; |
|
|
|
break; |
|
|
|
} |
|
|
|
@@ -350,14 +350,14 @@ Status GraphManager::AddGraph(const GraphId &graph_id, const Graph &graph, |
|
|
|
for (auto &subgraph : compute_graph->GetAllSubgraphs()) { |
|
|
|
(void)AttrUtils::SetStr(*subgraph, ATTR_NAME_SESSION_GRAPH_ID, session_graph_id); |
|
|
|
} |
|
|
|
GELOGD("Get graph session_graph_id attr failed, set session id to default value: [0]."); |
|
|
|
GELOGD("Get graph session_graph_id attr failed, set session id to default value: [0]"); |
|
|
|
} |
|
|
|
|
|
|
|
GraphNodePtr graph_node = MakeShared<ge::GraphNode>(graph_id); |
|
|
|
GE_IF_BOOL_EXEC(graph_node == nullptr, GELOGE(FAILED, "GraphNode make shared failed."); |
|
|
|
GE_IF_BOOL_EXEC(graph_node == nullptr, GELOGE(FAILED, "GraphNode make shared failed"); |
|
|
|
return FAILED); |
|
|
|
std::shared_ptr<Graph> graph_ptr = MakeShared<ge::Graph>(graph); |
|
|
|
GE_IF_BOOL_EXEC(graph_ptr == nullptr, GELOGE(FAILED, "GraphPtr make shared failed."); |
|
|
|
GE_IF_BOOL_EXEC(graph_ptr == nullptr, GELOGE(FAILED, "GraphPtr make shared failed"); |
|
|
|
return FAILED); |
|
|
|
|
|
|
|
graph_node->SetGraph(graph_ptr); |
|
|
|
@@ -766,7 +766,7 @@ Status GraphManager::RunCustomPass(const GraphNodePtr &graph_node) { |
|
|
|
|
|
|
|
GE_TIMESTAMP_START(RunCustomPass); |
|
|
|
GraphPtr graph = std::const_pointer_cast<Graph>(const_graph); |
|
|
|
GE_CHK_STATUS_RET(CustomPassHelper::Instance().Run(graph), "Graph[%s] run custom pass fail", |
|
|
|
GE_CHK_STATUS_RET(CustomPassHelper::Instance().Run(graph), "Graph[%s] run custom pass fail.", |
|
|
|
comp_graph->GetName().c_str()); |
|
|
|
GE_TIMESTAMP_END(RunCustomPass, "GraphBuilder::RunCustomPass"); |
|
|
|
return SUCCESS; |
|
|
|
@@ -784,7 +784,7 @@ Status GraphManager::PreRun(const GraphNodePtr &graph_node, const std::vector<Ge |
|
|
|
GE_CHK_STATUS_RET(analyzer_instance->BuildJsonObject(session_id, compute_graph->GetGraphID()), |
|
|
|
"BuildJsonObject Failed") |
|
|
|
|
|
|
|
GEEVENT("PreRun start: graph node size %zu, session id %lu, graph id %u, graph name %s.", |
|
|
|
GEEVENT("PreRun start: graph node size %zu, session id %lu, graph id %u, graph name %s", |
|
|
|
compute_graph->GetDirectNodesSize(), session_id, compute_graph->GetGraphID(), |
|
|
|
compute_graph->GetName().c_str()); |
|
|
|
GE_DUMP(compute_graph, "PreRunBegin"); |
|
|
|
@@ -805,7 +805,7 @@ Status GraphManager::PreRun(const GraphNodePtr &graph_node, const std::vector<Ge |
|
|
|
if (run_optimize_original_graph) { |
|
|
|
Status ret = PreRunOptimizeOriginalGraph(graph_node, inputs, compute_graph, session_id); |
|
|
|
if (ret != SUCCESS) { |
|
|
|
GELOGE(ret, "Run PreRunOptimizeOriginalGraph failed for graph:%s.", compute_graph->GetName().c_str()); |
|
|
|
GELOGE(ret, "Run PreRunOptimizeOriginalGraph failed for graph:%s", compute_graph->GetName().c_str()); |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
|