Update onnxruntime/core/providers/nnapi/nnapi_builtin/builders/model_builder.cc

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
This commit is contained in:
JiCheng 2023-03-15 09:24:46 +08:00 committed by JiCheng
parent 6bdb03281a
commit cc15ceef4e

View file

@ -594,9 +594,10 @@ Status ModelBuilder::Compile(std::unique_ptr<Model>& model) {
auto& [support_cnt, unspport_cnt] = ops_status;
total_ops += support_cnt + unspport_cnt;
if (support_cnt > 0) {
fallback_op_detail += MakeString(support_cnt, "x ", op, ", ");
} else if (unspport_cnt > 0) {
normal_op_detail += MakeString(unspport_cnt, "x ", op, ", ");
normal_op_detail += MakeString(support_cnt, "x ", op, ", ");
}
if (unspport_cnt > 0) {
fallback_op_detail += MakeString(unspport_cnt, "x ", op, ", ");
}
}