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
7dbc89d3
"web/vscode:/vscode.git/clone" did not exist on "6fff59c63751dca85cae083ccf5e6fc8e83dc047"
Commit
7dbc89d3
authored
Oct 06, 2018
by
Paul
Browse files
Formatting
parent
a4a654c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
src/include/migraph/matcher.hpp
src/include/migraph/matcher.hpp
+2
-4
src/targets/gpu/fuse_ops.cpp
src/targets/gpu/fuse_ops.cpp
+1
-3
No files found.
src/include/migraph/matcher.hpp
View file @
7dbc89d3
...
...
@@ -313,10 +313,8 @@ auto args(Ms... ms)
auto
either_arg
(
std
::
size_t
i
,
std
::
size_t
j
)
{
return
[
=
](
auto
m1
,
auto
m2
)
{
return
match
::
any_of
(
match
::
all_of
(
arg
(
i
)(
m1
),
arg
(
j
)(
m2
)),
match
::
all_of
(
arg
(
j
)(
m1
),
arg
(
i
)(
m2
))
);
return
match
::
any_of
(
match
::
all_of
(
arg
(
i
)(
m1
),
arg
(
j
)(
m2
)),
match
::
all_of
(
arg
(
j
)(
m1
),
arg
(
i
)(
m2
)));
};
}
...
...
src/targets/gpu/fuse_ops.cpp
View file @
7dbc89d3
...
...
@@ -168,9 +168,7 @@ struct match_conv_bias
auto
matcher
()
const
{
return
match
::
name
(
"gpu::add"
)(
match
::
either_arg
(
0
,
1
)(
match
::
broadcast_shape
().
bind
(
"bias"
),
match
::
name
(
"gpu::convolution"
).
bind
(
"conv"
)
));
match
::
broadcast_shape
().
bind
(
"bias"
),
match
::
name
(
"gpu::convolution"
).
bind
(
"conv"
)));
}
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