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
6d57f78d
"git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "1800646c21be54128aaed190743b074946706f7a"
Commit
6d57f78d
authored
Sep 29, 2023
by
Alan Turner
Browse files
Add name() to CK compute shape throws; enforce mul has 2 args
parent
6fe8b43c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/targets/gpu/fuse_ck.cpp
src/targets/gpu/fuse_ck.cpp
+3
-3
No files found.
src/targets/gpu/fuse_ck.cpp
View file @
6d57f78d
...
@@ -55,7 +55,7 @@ struct ck_gemm
...
@@ -55,7 +55,7 @@ struct ck_gemm
{
{
check_shapes
{
inputs
,
*
this
}.
same_ndims
();
check_shapes
{
inputs
,
*
this
}.
same_ndims
();
if
(
inputs
.
size
()
<
2
)
if
(
inputs
.
size
()
<
2
)
MIGRAPHX_THROW
(
"
should have at least two inputs."
);
MIGRAPHX_THROW
(
name
()
+
":
should have at least two inputs."
);
auto
a
=
inputs
[
0
];
auto
a
=
inputs
[
0
];
auto
b
=
inputs
[
1
];
auto
b
=
inputs
[
1
];
for
(
const
auto
&
input
:
inputs
)
for
(
const
auto
&
input
:
inputs
)
...
@@ -96,7 +96,7 @@ struct ck_gemm_softmax_gemm
...
@@ -96,7 +96,7 @@ struct ck_gemm_softmax_gemm
{
{
check_shapes
{
inputs
,
*
this
}.
same_ndims
();
check_shapes
{
inputs
,
*
this
}.
same_ndims
();
if
(
inputs
.
size
()
<
3
)
if
(
inputs
.
size
()
<
3
)
MIGRAPHX_THROW
(
"
Expected 3 inputs but got "
+
to_string
(
inputs
.
size
()));
MIGRAPHX_THROW
(
name
()
+
":
Expected 3 inputs but got "
+
to_string
(
inputs
.
size
()));
auto
a
=
inputs
[
0
];
auto
a
=
inputs
[
0
];
auto
b
=
inputs
[
1
];
auto
b
=
inputs
[
1
];
auto
b1
=
inputs
[
2
];
auto
b1
=
inputs
[
2
];
...
@@ -225,7 +225,7 @@ struct find_ck_gemm_softmax_gemm
...
@@ -225,7 +225,7 @@ struct find_ck_gemm_softmax_gemm
{
{
auto
gemm1
=
auto
gemm1
=
match
::
skip
(
match
::
name
(
"contiguous"
))(
match
::
name
(
"dot"
)(
is_ck_gemm
().
bind
(
"gemm1"
)));
match
::
skip
(
match
::
name
(
"contiguous"
))(
match
::
name
(
"dot"
)(
is_ck_gemm
().
bind
(
"gemm1"
)));
auto
mul
=
match
::
name
(
"pointwise"
)(
match
::
either_arg
(
0
,
1
)(
auto
mul
=
match
::
name
(
"pointwise"
)(
match
::
nargs
(
2
),
match
::
either_arg
(
0
,
1
)(
match
::
is_constant
().
bind
(
"scale"
),
gemm1
))(
is_pointwise_scale
());
match
::
is_constant
().
bind
(
"scale"
),
gemm1
))(
is_pointwise_scale
());
auto
softmax
=
match
::
name
(
"softmax"
)(
match
::
arg
(
0
)(
mul
)).
bind
(
"softmax"
);
auto
softmax
=
match
::
name
(
"softmax"
)(
match
::
arg
(
0
)(
mul
)).
bind
(
"softmax"
);
...
...
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