Browse Source

modified: ge/graph/passes/replace_with_empty_const_pass.cc

tags/v1.1.0
zhaoxinxin 4 years ago
parent
commit
95963ac5a5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ge/graph/passes/replace_with_empty_const_pass.cc

+ 1
- 1
ge/graph/passes/replace_with_empty_const_pass.cc View File

@@ -74,7 +74,7 @@ Status ReplaceWithEmptyConstPass::Run(NodePtr &node) {
GELOGD("ReplaceWithEmptyConstPass end."); GELOGD("ReplaceWithEmptyConstPass end.");
return SUCCESS; return SUCCESS;
} }
Status GetOutputsOfCurrNode(const NodePtr &node_to_replace, vector<GeTensorPtr> &outputs) {
Status ReplaceWithEmptyConstPass::GetOutputsOfCurrNode(const NodePtr &node_to_replace, vector<GeTensorPtr> &outputs) {
for (const auto &out_anchor : node_to_replace->GetAllOutDataAnchors()) { for (const auto &out_anchor : node_to_replace->GetAllOutDataAnchors()) {
GE_CHECK_NOTNULL(node_to_replace->GetOpDesc()); GE_CHECK_NOTNULL(node_to_replace->GetOpDesc());
auto out_desc = node_to_replace->GetOpDesc()->GetOutputDesc(out_anchor->GetIdx()); auto out_desc = node_to_replace->GetOpDesc()->GetOutputDesc(out_anchor->GetIdx());


Loading…
Cancel
Save