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
255342ca
Commit
255342ca
authored
Oct 16, 2018
by
Paul
Browse files
Rename with find prefix
parent
f1a58b24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/targets/gpu/fuse_ops.cpp
src/targets/gpu/fuse_ops.cpp
+8
-8
No files found.
src/targets/gpu/fuse_ops.cpp
View file @
255342ca
...
...
@@ -189,7 +189,7 @@ struct hip_add_relu
}
};
struct
match
_add_relu
struct
find
_add_relu
{
auto
matcher
()
const
{
...
...
@@ -211,7 +211,7 @@ struct match_add_relu
}
};
struct
match
_triadd
struct
find
_triadd
{
auto
matcher
()
const
{
...
...
@@ -346,7 +346,7 @@ void apply_conv_bias(context& ctx, program& p, match::matcher_result r)
p
.
replace_instruction
(
ins
,
cb
,
input_ins
,
weights_ins
,
old_ws_ins
,
bias_ins
,
alloc_ins
);
}
struct
match
_conv_bias
struct
find
_conv_bias
{
context
*
ctx
=
nullptr
;
auto
matcher
()
const
...
...
@@ -360,7 +360,7 @@ struct match_conv_bias
}
};
struct
match
_conv_bias_relu
struct
find
_conv_bias_relu
{
context
*
ctx
=
nullptr
;
auto
matcher
()
const
{
return
match
::
name
(
"gpu::relu"
)(
match
::
arg
(
0
)(
conv_bias
()));
}
...
...
@@ -374,11 +374,11 @@ struct match_conv_bias_relu
void
fuse_ops
::
apply
(
program
&
p
)
const
{
// clang-format off
match
::
find_matches
(
p
,
match
_triadd
{});
match
::
find_matches
(
p
,
find
_triadd
{});
match
::
find_matches
(
p
,
match
_conv_bias_relu
{
ctx
},
match
_conv_bias
{
ctx
},
match
_add_relu
{}
find
_conv_bias_relu
{
ctx
},
find
_conv_bias
{
ctx
},
find
_add_relu
{}
);
// clang-format on
}
...
...
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