|
@@ -82,6 +82,7 @@ Status CondRemovePass::Run(NodePtr &node) { |
|
|
|
|
|
|
|
|
Status CondRemovePass::RemoveDeadCondLink(const int32_t index, const NodePtr &node) { |
|
|
Status CondRemovePass::RemoveDeadCondLink(const int32_t index, const NodePtr &node) { |
|
|
const auto &in_anchor = node->GetInDataAnchor(index); |
|
|
const auto &in_anchor = node->GetInDataAnchor(index); |
|
|
|
|
|
GE_CHECK_NOTNULL(in_anchor); |
|
|
const auto &peerout_anchor = in_anchor->GetPeerOutAnchor(); |
|
|
const auto &peerout_anchor = in_anchor->GetPeerOutAnchor(); |
|
|
if (GraphUtils::RemoveEdge(peerout_anchor, in_anchor) != SUCCESS) { |
|
|
if (GraphUtils::RemoveEdge(peerout_anchor, in_anchor) != SUCCESS) { |
|
|
GELOGE(FAILED, "Remove edge from node %s index %d to node %s index %d.", |
|
|
GELOGE(FAILED, "Remove edge from node %s index %d to node %s index %d.", |
|
|