Commit c8188db0 authored by Paul's avatar Paul
Browse files

Formatting

parent 3e15b7a0
...@@ -7,8 +7,7 @@ ...@@ -7,8 +7,7 @@
struct sum_cf_op struct sum_cf_op
{ {
std::string name() const { return "sum_cf"; } std::string name() const { return "sum_cf"; }
migraphx::argument migraphx::argument compute(const migraphx::shape&, std::vector<migraphx::argument> args) const
compute(const migraphx::shape&, std::vector<migraphx::argument> args) const
{ {
migraphx::argument result; migraphx::argument result;
if(args.size() != 2) if(args.size() != 2)
...@@ -60,7 +59,8 @@ TEST_CASE(op_test1) ...@@ -60,7 +59,8 @@ TEST_CASE(op_test1)
TEST_CASE(op_test2) TEST_CASE(op_test2)
{ {
migraphx::program p; migraphx::program p;
auto x = p.add_parameter("param", migraphx::shape{migraphx::shape::float_type, {1}});; auto x = p.add_parameter("param", migraphx::shape{migraphx::shape::float_type, {1}});
;
auto two = p.add_literal(2); auto two = p.add_literal(2);
auto sum = p.add_instruction(sum_cf_op{}, x, two); auto sum = p.add_instruction(sum_cf_op{}, x, two);
CHECK(sum->eval().empty()); CHECK(sum->eval().empty());
......
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