From 94bdb8e280fc6e44a1ad0a5877d86ac6918bda5f Mon Sep 17 00:00:00 2001 From: chenyemeng Date: Wed, 30 Dec 2020 16:34:52 +0800 Subject: [PATCH] rm compile macro --- ge/graph/passes/assign_remove_pass.cc | 3 +-- ge/graph/passes/inplace_support_check_pass.cc | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ge/graph/passes/assign_remove_pass.cc b/ge/graph/passes/assign_remove_pass.cc index 51e6e006..72e108c3 100644 --- a/ge/graph/passes/assign_remove_pass.cc +++ b/ge/graph/passes/assign_remove_pass.cc @@ -19,6 +19,7 @@ #include "graph/utils/graph_utils.h" #include "graph/debug/ge_attr_define.h" +namespace ge { namespace { constexpr uint32_t kValidInputNodeOutputNum = 1; constexpr int32_t kAssignRefInputIndex = 0; @@ -27,8 +28,6 @@ static const std::set kNoTaskNodeTypes = { ge::DATA, ge::ANN_DATA, ge::CONSTANT, ge::CONSTANTOP, ge::VARIABLE, ge::VARIABLEV2 }; } - -namespace ge { Status AssignRemovePass::Run(NodePtr &node) { GELOGD("AssignRemovePass running"); diff --git a/ge/graph/passes/inplace_support_check_pass.cc b/ge/graph/passes/inplace_support_check_pass.cc index 73cc7f3b..44ad8361 100644 --- a/ge/graph/passes/inplace_support_check_pass.cc +++ b/ge/graph/passes/inplace_support_check_pass.cc @@ -19,6 +19,7 @@ #include "graph/utils/graph_utils.h" #include "graph/debug/ge_attr_define.h" +namespace ge { namespace { constexpr uint32_t kInplaceSupportOutputIndex = 0; constexpr uint32_t kInplaceSupportOutputNum = 1; @@ -26,8 +27,6 @@ static const std::set kSrcNodeTypes = { ge::DATA, ge::ANN_DATA, ge: ge::CONSTANT, ge::CONSTANTOP, ge::VARIABLE, ge::VARIABLEV2 }; } - -namespace ge { Status InplaceSupportCheckPass::Run(NodePtr &node) { GELOGD("InplaceSupportCheckPass running"); if (node->GetAllOutDataAnchorsSize() != kInplaceSupportOutputNum) {