|
|
@@ -359,6 +359,7 @@ Status ForPass::CreateLoopInput(const ComputeGraphPtr &graph, const ForInfo &for |
|
|
graphStatus error_code = GRAPH_SUCCESS; |
|
|
graphStatus error_code = GRAPH_SUCCESS; |
|
|
std::string error_msg; |
|
|
std::string error_msg; |
|
|
if ((graph_builder.Build(error_code, error_msg) == nullptr) || (error_code != GRAPH_SUCCESS)) { |
|
|
if ((graph_builder.Build(error_code, error_msg) == nullptr) || (error_code != GRAPH_SUCCESS)) { |
|
|
|
|
|
REPORT_CALL_ERROR("E19999", "Add loop input node to graph:%s failed", graph->GetName().c_str()); |
|
|
GELOGE(FAILED, "Create loop_count node failed: error_code:%u, error_msg:%s.", error_code, error_msg.c_str()); |
|
|
GELOGE(FAILED, "Create loop_count node failed: error_code:%u, error_msg:%s.", error_code, error_msg.c_str()); |
|
|
return FAILED; |
|
|
return FAILED; |
|
|
} |
|
|
} |
|
|
@@ -371,6 +372,7 @@ Status ForPass::CreateLoopInput(const ComputeGraphPtr &graph, const ForInfo &for |
|
|
NodePtr abs_delta_node = graph_builder.GetNode(abs_name_0); |
|
|
NodePtr abs_delta_node = graph_builder.GetNode(abs_name_0); |
|
|
NodePtr loop_count_node = graph_builder.GetNode(abs_name_1); |
|
|
NodePtr loop_count_node = graph_builder.GetNode(abs_name_1); |
|
|
if ((abs_delta_node == nullptr) || (loop_count_node == nullptr)) { |
|
|
if ((abs_delta_node == nullptr) || (loop_count_node == nullptr)) { |
|
|
|
|
|
REPORT_CALL_ERROR("E19999", "Add loop input node to graph:%s failed", graph->GetName().c_str()); |
|
|
GELOGE(FAILED, "Create loop node failed: node is NULL."); |
|
|
GELOGE(FAILED, "Create loop node failed: node is NULL."); |
|
|
return FAILED; |
|
|
return FAILED; |
|
|
} |
|
|
} |
|
|
|