|
|
@@ -660,7 +660,7 @@ Status GraphManager::SetSubgraph(uint64_t session_id, ComputeGraphPtr compute_gr |
|
|
|
GE_CHK_STATUS_RET(pass_for_dynamic_shape_reset_optimize.AddPass( |
|
|
|
"SetSubgraph::AfterSetSubgraph::DynamicSingleOpResetShapePass", new (std::nothrow) DynamicSingleOpResetShapePass)) |
|
|
|
GE_TIMESTAMP_START(pass_for_dynamic_shape_reset_optimize); |
|
|
|
ret = pass_for_dynamic_shape_reset_optimize.Run(compute_graph); |
|
|
|
Status ret = pass_for_dynamic_shape_reset_optimize.Run(compute_graph); |
|
|
|
GE_TIMESTAMP_END(pass_for_dynamic_shape_reset_optimize, "SetSubgraph::AfterSetSubgraph"); |
|
|
|
if (ret != SUCCESS && ret != NOT_CHANGED) { |
|
|
|
GELOGE(ret, "Run passes when optimize subgraph failed"); |
|
|
@@ -671,7 +671,7 @@ Status GraphManager::SetSubgraph(uint64_t session_id, ComputeGraphPtr compute_gr |
|
|
|
GELOGD("Directly optimize subgraph with build mode:%s, and step:%s.", |
|
|
|
options_.build_mode.c_str(), |
|
|
|
options_.build_step.c_str()); |
|
|
|
Status ret = OptimizeSubGraphWithMultiThreads(compute_graph, sub_graph_map, session_id); |
|
|
|
ret = OptimizeSubGraphWithMultiThreads(compute_graph, sub_graph_map, session_id); |
|
|
|
if (ret != SUCCESS) { |
|
|
|
GELOGE(ret, "Multiply optimize subgraph failed"); |
|
|
|
return ret; |
|
|
|