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
c22c9c0f
Commit
c22c9c0f
authored
Oct 15, 2018
by
Paul
Browse files
Match more fusions
parent
30b40654
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/targets/gpu/fuse_ops.cpp
src/targets/gpu/fuse_ops.cpp
+1
-3
No files found.
src/targets/gpu/fuse_ops.cpp
View file @
c22c9c0f
...
@@ -186,7 +186,6 @@ struct match_add_relu
...
@@ -186,7 +186,6 @@ struct match_add_relu
auto
matcher
()
const
auto
matcher
()
const
{
{
return
match
::
name
(
"gpu::relu"
)(
return
match
::
name
(
"gpu::relu"
)(
match
::
used_once
(),
match
::
arg
(
0
)(
match
::
arg
(
0
)(
match
::
any_of
(
match
::
name
(
"gpu::add"
),
match
::
name
(
"hip::triadd"
)).
bind
(
"add"
)));
match
::
any_of
(
match
::
name
(
"gpu::add"
),
match
::
name
(
"hip::triadd"
)).
bind
(
"add"
)));
}
}
...
@@ -318,7 +317,6 @@ auto conv_bias(Ms... ms)
...
@@ -318,7 +317,6 @@ auto conv_bias(Ms... ms)
return
match
::
name
(
"gpu::add"
)(
return
match
::
name
(
"gpu::add"
)(
match
::
either_arg
(
0
,
1
)(
bias_shape
(
match
::
used_once
()).
bind
(
"bias"
),
match
::
either_arg
(
0
,
1
)(
bias_shape
(
match
::
used_once
()).
bind
(
"bias"
),
fusable_conv
(
match
::
used_once
()).
bind
(
"conv"
)),
fusable_conv
(
match
::
used_once
()).
bind
(
"conv"
)),
match
::
used_once
(),
ms
...);
ms
...);
}
}
...
@@ -360,7 +358,7 @@ struct match_conv_bias_relu
...
@@ -360,7 +358,7 @@ struct match_conv_bias_relu
context
*
ctx
=
nullptr
;
context
*
ctx
=
nullptr
;
auto
matcher
()
const
auto
matcher
()
const
{
{
return
match
::
name
(
"gpu::relu"
)(
match
::
used_once
(),
match
::
arg
(
0
)(
conv_bias
()));
return
match
::
name
(
"gpu::relu"
)(
match
::
arg
(
0
)(
conv_bias
()));
}
}
void
apply
(
program
&
p
,
match
::
matcher_result
r
)
const
void
apply
(
program
&
p
,
match
::
matcher_result
r
)
const
...
...
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