C++11 fix for memcpy_transformer_test.cc (#2061)

This commit is contained in:
Changming Sun 2019-10-09 10:52:10 -07:00 committed by GitHub
parent cefae93305
commit eee9c55030
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()) {