Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
828017fb
Commit
828017fb
authored
Feb 27, 2019
by
Shucai Xiao
Browse files
clang format
parent
94d13003
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
21 deletions
+14
-21
src/targets/cpu/gemm.cpp
src/targets/cpu/gemm.cpp
+2
-3
test/gpu/miopen.cpp
test/gpu/miopen.cpp
+0
-1
test/onnx/onnx_test.cpp
test/onnx/onnx_test.cpp
+8
-8
test/op_shape_test.cpp
test/op_shape_test.cpp
+4
-9
No files found.
src/targets/cpu/gemm.cpp
View file @
828017fb
...
...
@@ -83,8 +83,7 @@ void migemm_impl(tensor_view<T> cmat,
auto
b_idx
=
c_idx
;
dfor
(
k
)([
&
](
auto
kk
)
{
a_idx
[
dim_1
]
=
b_idx
[
dim_0
]
=
kk
;
s
+=
amat
(
a_idx
.
begin
(),
a_idx
.
end
())
*
bmat
(
b_idx
.
begin
(),
b_idx
.
end
());
s
+=
amat
(
a_idx
.
begin
(),
a_idx
.
end
())
*
bmat
(
b_idx
.
begin
(),
b_idx
.
end
());
});
cmat
(
c_idx
.
begin
(),
c_idx
.
end
())
=
alpha
*
s
;
});
...
...
test/gpu/miopen.cpp
View file @
828017fb
...
...
@@ -836,7 +836,6 @@ struct test_gemm_transposea_ex
}
};
struct
test_gemm_transposeab
{
migraphx
::
program
create_program
()
const
...
...
test/onnx/onnx_test.cpp
View file @
828017fb
test/op_shape_test.cpp
View file @
828017fb
...
...
@@ -321,10 +321,8 @@ TEST_CASE(dot)
{
migraphx
::
shape
s_m1
{
migraphx
::
shape
::
float_type
,
{
4
,
5
}};
migraphx
::
shape
s_m2
{
migraphx
::
shape
::
float_type
,
{
5
,
8
}};
expect_shape
(
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
4
,
8
}},
migraphx
::
op
::
dot
{},
s_m1
,
s_m2
);
expect_shape
(
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
4
,
8
}},
migraphx
::
op
::
dot
{},
s_m1
,
s_m2
);
}
{
...
...
@@ -336,10 +334,8 @@ TEST_CASE(dot)
{
migraphx
::
shape
s_m1
{
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
}},
migraphx
::
op
::
dot
{},
s_m1
,
s_m2
);
expect_shape
(
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
1
,
1
}},
migraphx
::
op
::
dot
{},
s_m1
,
s_m2
);
}
{
...
...
@@ -394,7 +390,6 @@ TEST_CASE(dot)
}
}
TEST_CASE
(
rnn
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment