Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
1b895f4a
Commit
1b895f4a
authored
Jul 19, 2019
by
Shucai Xiao
Browse files
clang format
parent
0d877311
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
src/targets/gpu/gemm.cpp
src/targets/gpu/gemm.cpp
+10
-10
No files found.
src/targets/gpu/gemm.cpp
View file @
1b895f4a
...
@@ -177,7 +177,7 @@ shape miopen_gemm::compute_shape(const std::vector<shape>& inputs) const
...
@@ -177,7 +177,7 @@ shape miopen_gemm::compute_shape(const std::vector<shape>& inputs) const
auto
dim_1
=
a_strides
.
size
()
-
1
;
auto
dim_1
=
a_strides
.
size
()
-
1
;
auto
dim_0
=
dim_1
-
1
;
auto
dim_0
=
dim_1
-
1
;
auto
matrix_size
=
std
::
max
(
a_strides
[
dim_0
],
a_strides
[
1
]);
auto
matrix_size
=
std
::
max
(
a_strides
[
dim_0
],
a_strides
[
1
]);
if
(
std
::
adjacent_find
(
a_strides
.
begin
(),
a_strides
.
begin
()
+
dim_0
,
[
&
](
auto
i
,
auto
j
)
{
if
(
std
::
adjacent_find
(
a_strides
.
begin
(),
a_strides
.
begin
()
+
dim_0
,
[
&
](
auto
i
,
auto
j
)
{
return
(
i
<
j
or
i
<
matrix_size
or
j
<
matrix_size
);
return
(
i
<
j
or
i
<
matrix_size
or
j
<
matrix_size
);
})
!=
a_strides
.
begin
()
+
dim_0
)
})
!=
a_strides
.
begin
()
+
dim_0
)
{
{
...
@@ -192,7 +192,7 @@ shape miopen_gemm::compute_shape(const std::vector<shape>& inputs) const
...
@@ -192,7 +192,7 @@ shape miopen_gemm::compute_shape(const std::vector<shape>& inputs) const
auto
dim_1
=
b_strides
.
size
()
-
1
;
auto
dim_1
=
b_strides
.
size
()
-
1
;
auto
dim_0
=
dim_1
-
1
;
auto
dim_0
=
dim_1
-
1
;
auto
matrix_size
=
std
::
max
(
b_strides
[
dim_0
],
b_strides
[
1
]);
auto
matrix_size
=
std
::
max
(
b_strides
[
dim_0
],
b_strides
[
1
]);
if
(
std
::
adjacent_find
(
b_strides
.
begin
(),
b_strides
.
begin
()
+
dim_0
,
[
&
](
auto
i
,
auto
j
)
{
if
(
std
::
adjacent_find
(
b_strides
.
begin
(),
b_strides
.
begin
()
+
dim_0
,
[
&
](
auto
i
,
auto
j
)
{
return
(
i
<
j
or
i
<
matrix_size
or
j
<
matrix_size
);
return
(
i
<
j
or
i
<
matrix_size
or
j
<
matrix_size
);
})
!=
b_strides
.
begin
()
+
dim_0
)
})
!=
b_strides
.
begin
()
+
dim_0
)
{
{
...
...
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