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
a47adf4b
Commit
a47adf4b
authored
Jun 01, 2023
by
Paul
Browse files
Format
parent
d294b663
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/targets/gpu/jit/ck_gemm.cpp
src/targets/gpu/jit/ck_gemm.cpp
+5
-6
No files found.
src/targets/gpu/jit/ck_gemm.cpp
View file @
a47adf4b
...
@@ -270,14 +270,13 @@ struct ck_gemm_compiler : compiler<ck_gemm_compiler>
...
@@ -270,14 +270,13 @@ struct ck_gemm_compiler : compiler<ck_gemm_compiler>
bool
can_fold_batch
(
const
std
::
vector
<
shape
>&
inputs
)
const
bool
can_fold_batch
(
const
std
::
vector
<
shape
>&
inputs
)
const
{
{
const
auto
&
b_shape
=
inputs
[
1
];
const
auto
&
b_shape
=
inputs
[
1
];
if
(
std
::
any_of
(
inputs
.
begin
()
+
2
,
inputs
.
end
()
-
1
,
[](
auto
input
)
{
if
(
std
::
any_of
(
inputs
.
begin
()
+
2
,
inputs
.
end
()
-
1
,
[](
auto
input
)
{
return
input
.
broadcasted
();
return
input
.
broadcasted
();
}))
}))
return
false
;
return
false
;
const
auto
&
b_strides
=
b_shape
.
strides
();
const
auto
&
b_strides
=
b_shape
.
strides
();
return
std
::
all_of
(
b_strides
.
begin
(),
b_strides
.
end
()
-
3
,
[](
auto
stride
)
{
return
std
::
all_of
(
return
stride
==
0
;
b_strides
.
begin
(),
b_strides
.
end
()
-
3
,
[](
auto
stride
)
{
return
stride
==
0
;
});
});
}
}
ck
::
host
::
device_gemm_multiple_d
::
Problem
create_problem
(
const
std
::
vector
<
shape
>&
inputs
,
ck
::
host
::
device_gemm_multiple_d
::
Problem
create_problem
(
const
std
::
vector
<
shape
>&
inputs
,
...
...
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