Commit fb573172 authored by turneram's avatar turneram
Browse files

Formatting

parent 8d378877
...@@ -63,9 +63,8 @@ struct ck_elementwise ...@@ -63,9 +63,8 @@ struct ck_elementwise
{ {
argument result{output_shape}; argument result{output_shape};
visit_all(result, args[0], args[1])([&](auto output, auto input1, auto input2) { visit_all(result, args[0], args[1])([&](auto output, auto input1, auto input2) {
par_for(output_shape.elements(), [&](const auto i) { par_for(output_shape.elements(),
output[i] = input1[i] + input2[i]; [&](const auto i) { output[i] = input1[i] + input2[i]; });
});
}); });
return result; return result;
} }
......
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
namespace migraphx { namespace migraphx {
template <class T, class U, class V> template <class T, class U, class V>
__device__ void ck_elementwise(const T& /* data_t */, const U& /* indices_t */, const V& /* output_t */) __device__ void
ck_elementwise(const T& /* data_t */, const U& /* indices_t */, const V& /* output_t */)
{ {
} }
......
...@@ -34,7 +34,7 @@ struct ck_elementwise : verify_program<ck_elementwise> ...@@ -34,7 +34,7 @@ struct ck_elementwise : verify_program<ck_elementwise>
migraphx::program p; migraphx::program p;
auto* mm = p.get_main_module(); auto* mm = p.get_main_module();
migraphx::shape m1_shape{migraphx::shape::float_type, {10, 20}}; migraphx::shape m1_shape{migraphx::shape::float_type, {10, 20}};
//migraphx::shape m2_shape{migraphx::shape::float_type, {20, 10}}; // migraphx::shape m2_shape{migraphx::shape::float_type, {20, 10}};
auto l1 = mm->add_parameter("1", m1_shape); auto l1 = mm->add_parameter("1", m1_shape);
auto l2 = mm->add_parameter("2", m1_shape); auto l2 = mm->add_parameter("2", m1_shape);
......
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