diff --git a/ge/graph/passes/replace_with_empty_const_pass.cc b/ge/graph/passes/replace_with_empty_const_pass.cc index bf407914..f3887867 100644 --- a/ge/graph/passes/replace_with_empty_const_pass.cc +++ b/ge/graph/passes/replace_with_empty_const_pass.cc @@ -74,7 +74,7 @@ Status ReplaceWithEmptyConstPass::Run(NodePtr &node) { GELOGD("ReplaceWithEmptyConstPass end."); return SUCCESS; } -Status GetOutputsOfCurrNode(const NodePtr &node_to_replace, vector &outputs) { +Status ReplaceWithEmptyConstPass::GetOutputsOfCurrNode(const NodePtr &node_to_replace, vector &outputs) { for (const auto &out_anchor : node_to_replace->GetAllOutDataAnchors()) { GE_CHECK_NOTNULL(node_to_replace->GetOpDesc()); auto out_desc = node_to_replace->GetOpDesc()->GetOutputDesc(out_anchor->GetIdx());