Commit 301b7605 authored by Paul's avatar Paul
Browse files

Formatting

parent e32bbb45
...@@ -33,7 +33,6 @@ bool is_reshaper(instruction_ref ins) ...@@ -33,7 +33,6 @@ bool is_reshaper(instruction_ref ins)
return contains(names, ins->name()) and not is_nonstandard_reshaper(ins); return contains(names, ins->name()) and not is_nonstandard_reshaper(ins);
} }
void simplify_reshapes::apply(program& p) const void simplify_reshapes::apply(program& p) const
{ {
for(auto ins : iterator_for(p)) for(auto ins : iterator_for(p))
......
...@@ -120,10 +120,10 @@ TEST_CASE(single_transpose_sin_pass) ...@@ -120,10 +120,10 @@ TEST_CASE(single_transpose_sin_pass)
TEST_CASE(reshape_transpose) TEST_CASE(reshape_transpose)
{ {
migraphx::program p; migraphx::program p;
auto s = migraphx::shape{migraphx::shape::float_type, {1, 112, 56, 56}}; auto s = migraphx::shape{migraphx::shape::float_type, {1, 112, 56, 56}};
auto x = p.add_parameter("x", s); auto x = p.add_parameter("x", s);
auto r1 = p.add_instruction(migraphx::op::reshape{{1, 4, 28, 56, 56}}, x); auto r1 = p.add_instruction(migraphx::op::reshape{{1, 4, 28, 56, 56}}, x);
auto t = p.add_instruction(migraphx::op::transpose{{0, 2, 1, 3, 4}}, r1); auto t = p.add_instruction(migraphx::op::transpose{{0, 2, 1, 3, 4}}, r1);
auto ct = p.add_instruction(migraphx::op::contiguous{}, t); auto ct = p.add_instruction(migraphx::op::contiguous{}, t);
auto r2 = p.add_instruction(migraphx::op::reshape{{1, 112, 56, 56}}, ct); auto r2 = p.add_instruction(migraphx::op::reshape{{1, 112, 56, 56}}, ct);
p.add_instruction(pass_op{}, r2); p.add_instruction(pass_op{}, r2);
......
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