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
6aeb4198
Commit
6aeb4198
authored
Nov 30, 2022
by
Alan Turner
Browse files
Merge
parent
e7f7ea10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/targets/gpu/fuse_ck_gemm_softmax_gemm.cpp
src/targets/gpu/fuse_ck_gemm_softmax_gemm.cpp
+1
-2
test/tf/gen_tf_pb.py
test/tf/gen_tf_pb.py
+1
-0
No files found.
src/targets/gpu/fuse_ck_gemm_softmax_gemm.cpp
View file @
6aeb4198
...
...
@@ -69,8 +69,7 @@ struct find_gemm_softmax_gemm_gemm
auto
gemm1
=
match
::
skip
(
match
::
name
(
"contiguous"
))(
match
::
name
(
"dot"
)(
is_ck_gemm
().
bind
(
"gemm1"
)));
auto
mul
=
match
::
name
(
"mul"
)(
match
::
any_of
[
match
::
inputs
()](
gemm1
)).
bind
(
"scale"
);
auto
add
=
match
::
name
(
"add"
)(
match
::
any_of
[
match
::
inputs
()](
mul
));
auto
softmax
=
match
::
name
(
"softmax"
)(
match
::
any_of
[
match
::
inputs
()](
add
)).
bind
(
"softmax"
);
auto
softmax
=
match
::
name
(
"softmax"
)(
match
::
any_of
[
match
::
inputs
()](
mul
)).
bind
(
"softmax"
);
return
match
::
name
(
"dot"
)(
is_ck_gemm
().
bind
(
"gemm2"
))(
match
::
any_of
[
match
::
inputs
()](
softmax
));
}
...
...
test/tf/gen_tf_pb.py
View file @
6aeb4198
...
...
@@ -28,6 +28,7 @@ import tensorflow as tf
def
tf_test
(
op_test
):
def
run_test
():
g1
=
tf
.
Graph
()
op_test
(
g1
)
...
...
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