Browse Source

fixing code review

tags/v1.1.0
chuxing 3 years ago
parent
commit
1efd304527
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      ge/hybrid/model/hybrid_model_builder.cc

+ 1
- 5
ge/hybrid/model/hybrid_model_builder.cc View File

@@ -71,11 +71,7 @@ Status CollectDependenciesForFusedGraph(NodeItem &node_item, std::set<OpDesc *>

for (auto &input_name : depends) {
auto input_index = op_desc->GetInputIndexByName(input_name);
const auto &in_anchor = node->GetInDataAnchor(input_index);
GE_CHECK_NOTNULL(in_anchor);
const auto &peer_out_anchor = in_anchor->GetPeerOutAnchor();
GE_CHECK_NOTNULL(peer_out_anchor);
const auto &src_node = peer_out_anchor->GetOwnerNode();
auto src_node = NodeUtils::GetInDataNodeByIndex(*node, input_index);
GE_CHECK_NOTNULL(src_node);
auto src_op_desc = src_node->GetOpDesc();
GE_CHECK_NOTNULL(src_op_desc);


Loading…
Cancel
Save