fix bug of dynamic shape load error

pull/1266/head
wxl 4 years ago
parent 2966232996
commit f8acefb43d

@ -54,10 +54,10 @@ Status CheckIdentityUsable(const NodePtr &node, bool &usable) {
}
GE_CHK_STATUS_RET(GetOriginalType(in_node, node_type),
"Failed to get node type from node %s.", node->GetName().c_str());
"Failed to get node type from node %s", node->GetName().c_str());
bool need_skip = (node_type != SWITCH) && (node_type != REFSWITCH) && (node_type != SWITCHN);
if (need_skip) {
GELOGD("skip identity %s connected to switch.", node->GetName().c_str());
GELOGD("skip identity %s connected to switch", node->GetName().c_str());
break;
}
GE_CHECK_NOTNULL(node->GetOutControlAnchor());

@ -42,7 +42,7 @@ Status PrunePass::Run(ge::ComputeGraphPtr graph) {
}
}
if (out_nodes.empty()) {
GELOGW("graph [%s] does not contain NETOUTPUT type node, no return value. Do nothing!", graph->GetName().c_str());
GELOGW("graph [%s] does not contain NETOUTPUT type node,no return value. Do nothing!", graph->GetName().c_str());
return ge::SUCCESS;
}

Loading…
Cancel
Save