Commit 3393530b authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 41f74ac8
...@@ -129,8 +129,8 @@ void program::copy(const program& p) ...@@ -129,8 +129,8 @@ void program::copy(const program& p)
{ {
auto&& name = any_cast<builtin::param>(ins->get_operator()).parameter; auto&& name = any_cast<builtin::param>(ins->get_operator()).parameter;
auto s = ins->get_shape(); auto s = ins->get_shape();
copy_ins = impl->instructions.insert( copy_ins = impl->instructions.insert(impl->instructions.end(),
impl->instructions.end(), {builtin::param{name}, std::move(s), {}}); {builtin::param{name}, std::move(s), {}});
} }
else if(ins->name() == "@outline") else if(ins->name() == "@outline")
{ {
......
...@@ -65,9 +65,9 @@ TEST_CASE(program_copy) ...@@ -65,9 +65,9 @@ TEST_CASE(program_copy)
auto p2 = create_program(); auto p2 = create_program();
p2.compile(migraphx::cpu::target{}); p2.compile(migraphx::cpu::target{});
p2 = p1; p2 = p1;
p2.compile(migraphx::cpu::target{}); p2.compile(migraphx::cpu::target{});
EXPECT(p1 == p2); EXPECT(p1 == p2);
} }
} }
......
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