Commit 2d43d331 authored by Paul's avatar Paul
Browse files

Format

parent 6e2dd3cd
...@@ -37,7 +37,10 @@ struct test_slice2 : verify_program<test_slice2> ...@@ -37,7 +37,10 @@ struct test_slice2 : verify_program<test_slice2>
auto x = mm->add_parameter("x", {migraphx::shape::float_type, {1, 44, 57, 57}}); auto x = mm->add_parameter("x", {migraphx::shape::float_type, {1, 44, 57, 57}});
auto y = mm->add_parameter("y", {migraphx::shape::float_type, {1, 44, 56, 56}}); auto y = mm->add_parameter("y", {migraphx::shape::float_type, {1, 44, 56, 56}});
auto slice0 = mm->add_instruction( auto slice0 = mm->add_instruction(
migraphx::make_op("slice", {{"axes", {0, 2, 3, 1}}, {"starts", {0, 1, 1, 0}}, {"ends", {1, 57, 57, 44}}}), x); migraphx::make_op(
"slice",
{{"axes", {0, 2, 3, 1}}, {"starts", {0, 1, 1, 0}}, {"ends", {1, 57, 57, 44}}}),
x);
mm->add_instruction(migraphx::make_op("add"), y, slice0); mm->add_instruction(migraphx::make_op("add"), y, slice0);
return p; return p;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment