This commit is contained in:
jiaorui 2023-02-06 16:54:57 +08:00
parent 36414c2c87
commit fbe286b269
1 changed files with 0 additions and 8 deletions

View File

@ -2262,14 +2262,6 @@ bool DfGraphConvertor::IsNoOpRedundant(const ::ge::GNode &node) const {
if (node_type != kTypeNoOp) {
return false;
}
auto out_control_node = node.GetOutControlNodes();
auto in_control_node = node.GetInControlNodes();
if (out_control_node.size() == 1 || in_control_node.size() == 1) {
return true;
}
if (out_control_node.size() > kNoOpOptThreshold || in_control_node.size() > kNoOpOptThreshold) {
return false;
}
return true;
}
void DfGraphConvertor::RemoveNoOp(::ge::GNode noop) {