We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61aff5c commit eb7fa32Copy full SHA for eb7fa32
onnxruntime/test/ir/graph_test.cc
@@ -2292,7 +2292,9 @@ TEST(GraphTest, OuterScopeInitializerTypeInference) {
2292
2293
// Set the subgraph as an attribute of the parent node
2294
subgraph_proto.set_name("then_branch");
2295
- *(subgraph_proto.add_node()) = sub_node.ToProto();
+ NodeProto node_proto;
2296
+ sub_node.ToProto(node_proto);
2297
+ *(subgraph_proto.add_node()) = std::move(node_proto);
2298
subgraph_proto.add_output()->set_name("subgraph_out");
2299
2300
parent_node.AddAttribute("then_branch", subgraph_proto);
0 commit comments