mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-01 23:30:35 +00:00
C++11 fix for memcpy_transformer_test.cc (#2061)
This commit is contained in:
parent
cefae93305
commit
eee9c55030
1 changed files with 2 additions and 2 deletions
|
|
@ -245,8 +245,8 @@ TEST(TransformerTest, TestCopyNodeInsertionInitializerInSubgraph) {
|
|||
// main graph continued
|
||||
// create the 'If' node
|
||||
auto& if_node = graph.AddNode("node3", "If", "cpu operator2", ArgMap{&i1_def}, ArgMap{&o1_def, &o2_def});
|
||||
if_node.AddAttribute("then_branch", {subgraph.ToGraphProto()});
|
||||
if_node.AddAttribute("else_branch", {subgraph.ToGraphProto()});
|
||||
if_node.AddAttribute("then_branch", subgraph.ToGraphProto());
|
||||
if_node.AddAttribute("else_branch", subgraph.ToGraphProto());
|
||||
|
||||
onnxruntime::Graph* subgraph_1 = if_node.GetMutableGraphAttribute("then_branch");
|
||||
for (auto& node : subgraph_1->Nodes()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue