Commit a0d36aea authored by Max Podkorytov's avatar Max Podkorytov
Browse files

delegate bhalf2 case to bhalf inner product

parent d6557188
...@@ -91,8 +91,9 @@ __device__ void inner_product<bhalf2_t, bhalf2_t, float>(const bhalf2_t& a, cons ...@@ -91,8 +91,9 @@ __device__ void inner_product<bhalf2_t, bhalf2_t, float>(const bhalf2_t& a, cons
const vector_type<bhalf_t, 2> b_vector{b}; const vector_type<bhalf_t, 2> b_vector{b};
static_for<0, 2, 1>{}([&](auto i) { static_for<0, 2, 1>{}([&](auto i) {
c += type_convert<float>(a_vector.AsType<bhalf_t>()[i]) * inner_product(a_vector.AsType<bhalf_t>()[i],
type_convert<float>(b_vector.AsType<bhalf_t>()[i]); b_vector.AsType<bhalf_t>()[i],
c);
}); });
} }
......
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