Browse Source

rm compile macro

tags/v1.2.0
chenyemeng 3 years ago
parent
commit
94bdb8e280
2 changed files with 2 additions and 4 deletions
  1. +1
    -2
      ge/graph/passes/assign_remove_pass.cc
  2. +1
    -2
      ge/graph/passes/inplace_support_check_pass.cc

+ 1
- 2
ge/graph/passes/assign_remove_pass.cc View File

@@ -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<std::string> kNoTaskNodeTypes = { ge::DATA, ge::ANN_DATA,
ge::CONSTANT, ge::CONSTANTOP,
ge::VARIABLE, ge::VARIABLEV2 };
}

namespace ge {
Status AssignRemovePass::Run(NodePtr &node) {
GELOGD("AssignRemovePass running");



+ 1
- 2
ge/graph/passes/inplace_support_check_pass.cc View File

@@ -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<std::string> 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) {


Loading…
Cancel
Save