forked from mindspore-Ecosystem/mindspore
fix mobilefacenet bug
This commit is contained in:
parent
b7183ded66
commit
b42f38025c
|
@ -5,4 +5,5 @@ shufflenetv2.mindir
|
|||
inceptionv3.mindir
|
||||
googlenet.mindir
|
||||
retinaface.mindir
|
||||
mobilefacenet.mindir
|
||||
resnext50.mindir
|
||||
|
|
|
@ -93,11 +93,7 @@ bool TransOpInsertPass::CanFusion(schema::MetaGraphT *graph, const std::unique_p
|
|||
return has_trans_count >= half_count;
|
||||
}
|
||||
}
|
||||
if (total_node_count % 2 == 0) {
|
||||
can_fusion = has_trans_count > half_count;
|
||||
} else {
|
||||
can_fusion = has_trans_count >= half_count;
|
||||
}
|
||||
can_fusion = has_trans_count > half_count;
|
||||
return can_fusion;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue