Browse Source

modified: ge/graph/passes/replace_with_empty_const_pass.cc

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

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

@@ -33,8 +33,8 @@ Status ReplaceWithEmptyConstPass::Run(NodePtr &node) {
GELOGE(PARAM_INVALID, "Param [opDesc] must not be null.");
return PARAM_INVALID;
}
if (node->GetType() == CONSTANT || node->GetType() == CONSTANTOP) {
GELOGI("Node %s is const. Ignore current pass.", node->GetName().c_str());
if (node->GetType() == CONSTANT || node->GetType() == CONSTANTOP || node->GetType() == DATA) {
GELOGD("Node %s is const or data. Ignore current pass.", node->GetName().c_str());
return SUCCESS;
}
// Node like no op, it has no output


Loading…
Cancel
Save