mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-05 04:17:53 +00:00
Fix build with gcc 7.5 (#10567)
This commit is contained in:
parent
75160d6779
commit
4c20f6863d
1 changed files with 4 additions and 5 deletions
|
|
@ -179,11 +179,10 @@ NnapiExecutionProvider::GetCapability(const onnxruntime::GraphViewer& graph_view
|
|||
gen_metadef_name, NNAPI, kNnapiExecutionProvider);
|
||||
|
||||
const auto num_of_partitions = result.size();
|
||||
const auto num_of_supported_nodes = std::transform_reduce(
|
||||
result.begin(), result.end(),
|
||||
size_t{0}, std::plus<>{},
|
||||
[](const auto& partition) -> size_t {
|
||||
return partition && partition->sub_graph ? partition->sub_graph->nodes.size() : 0;
|
||||
const auto num_of_supported_nodes = std::accumulate(
|
||||
result.begin(), result.end(), size_t{0},
|
||||
[](const auto& acc, const auto& partition) -> size_t {
|
||||
return acc + (partition && partition->sub_graph ? partition->sub_graph->nodes.size() : 0);
|
||||
});
|
||||
|
||||
const auto summary_msg = MakeString(
|
||||
|
|
|
|||
Loading…
Reference in a new issue