Commit 828017fb authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 94d13003
...@@ -83,8 +83,7 @@ void migemm_impl(tensor_view<T> cmat, ...@@ -83,8 +83,7 @@ void migemm_impl(tensor_view<T> cmat,
auto b_idx = c_idx; auto b_idx = c_idx;
dfor(k)([&](auto kk) { dfor(k)([&](auto kk) {
a_idx[dim_1] = b_idx[dim_0] = kk; a_idx[dim_1] = b_idx[dim_0] = kk;
s += amat(a_idx.begin(), a_idx.end()) * s += amat(a_idx.begin(), a_idx.end()) * bmat(b_idx.begin(), b_idx.end());
bmat(b_idx.begin(), b_idx.end());
}); });
cmat(c_idx.begin(), c_idx.end()) = alpha * s; cmat(c_idx.begin(), c_idx.end()) = alpha * s;
}); });
......
...@@ -836,7 +836,6 @@ struct test_gemm_transposea_ex ...@@ -836,7 +836,6 @@ struct test_gemm_transposea_ex
} }
}; };
struct test_gemm_transposeab struct test_gemm_transposeab
{ {
migraphx::program create_program() const migraphx::program create_program() const
......
...@@ -321,10 +321,8 @@ TEST_CASE(dot) ...@@ -321,10 +321,8 @@ TEST_CASE(dot)
{ {
migraphx::shape s_m1{migraphx::shape::float_type, {4, 5}}; migraphx::shape s_m1{migraphx::shape::float_type, {4, 5}};
migraphx::shape s_m2{migraphx::shape::float_type, {5, 8}}; migraphx::shape s_m2{migraphx::shape::float_type, {5, 8}};
expect_shape(migraphx::shape{migraphx::shape::float_type, {4, 8}}, expect_shape(
migraphx::op::dot{}, migraphx::shape{migraphx::shape::float_type, {4, 8}}, migraphx::op::dot{}, s_m1, s_m2);
s_m1,
s_m2);
} }
{ {
...@@ -336,10 +334,8 @@ TEST_CASE(dot) ...@@ -336,10 +334,8 @@ TEST_CASE(dot)
{ {
migraphx::shape s_m1{migraphx::shape::float_type, {1, 1}}; migraphx::shape s_m1{migraphx::shape::float_type, {1, 1}};
migraphx::shape s_m2{migraphx::shape::float_type, {1, 1}}; migraphx::shape s_m2{migraphx::shape::float_type, {1, 1}};
expect_shape(migraphx::shape{migraphx::shape::float_type, {1, 1}}, expect_shape(
migraphx::op::dot{}, migraphx::shape{migraphx::shape::float_type, {1, 1}}, migraphx::op::dot{}, s_m1, s_m2);
s_m1,
s_m2);
} }
{ {
...@@ -394,7 +390,6 @@ TEST_CASE(dot) ...@@ -394,7 +390,6 @@ TEST_CASE(dot)
} }
} }
TEST_CASE(rnn) TEST_CASE(rnn)
{ {
{ {
......
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