Skip to content

Commit

Permalink
Remove structured binding as Androind does not like it
Browse files Browse the repository at this point in the history
  • Loading branch information
yuslepukhin committed Dec 10, 2024
1 parent 110c53b commit 0dfac49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion onnxruntime/core/graph/graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4108,7 +4108,9 @@ Status Graph::ToGraphProtoWithExternalInitiallizersImpl(
ORT_RETURN_IF_NOT(hit != output_graph_proto.mutable_node()->end(), "Node ", node.Name(),
" not found in output_graph_proto");
auto& result_node = *hit;
for (const auto& [name, subgraph] : node.GetAttributeNameToSubgraphMap()) {
for (const auto& e : node.GetAttributeNameToSubgraphMap()) {
const auto& name = e.first;
const auto& subgraph = e.second;
// Lets find this subgraph in the result_node
auto sub_hit = std::find_if(result_node.mutable_attribute()->begin(),
result_node.mutable_attribute()->end(),
Expand Down

0 comments on commit 0dfac49

Please sign in to comment.