Browse Source

modify control passes

pull/401/head
chenyemeng 4 years ago
parent
commit
75fe10bbe4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ge/graph/passes/merge_pass.cc

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

@@ -48,7 +48,7 @@ Status MergePass::Run(NodePtr &node) {
return PARAM_INVALID; return PARAM_INVALID;
} }


const auto in_data_nodes = node->GetInDataNodes();
const auto &in_data_nodes = node->GetInDataNodes();
switch (in_data_nodes.size()) { switch (in_data_nodes.size()) {
case 0: { case 0: {
/// Case A: input_count = 0, the output of merge node is inactive as well /// Case A: input_count = 0, the output of merge node is inactive as well


Loading…
Cancel
Save