From aa06a0e93d52738bd6fe1c63ad869ee9d36004e6 Mon Sep 17 00:00:00 2001 From: zhaoxinxin Date: Fri, 26 Feb 2021 09:38:40 +0800 Subject: [PATCH] modified: ge/graph/passes/replace_with_empty_const_pass.cc --- ge/graph/passes/replace_with_empty_const_pass.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ge/graph/passes/replace_with_empty_const_pass.cc b/ge/graph/passes/replace_with_empty_const_pass.cc index f3887867..e44aee09 100644 --- a/ge/graph/passes/replace_with_empty_const_pass.cc +++ b/ge/graph/passes/replace_with_empty_const_pass.cc @@ -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