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
eeb92b57
Commit
eeb92b57
authored
Jul 08, 2019
by
Paul
Browse files
Formatting
parent
c7b4fadd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/simplify_algebra.cpp
src/simplify_algebra.cpp
+12
-12
No files found.
src/simplify_algebra.cpp
View file @
eeb92b57
...
@@ -27,8 +27,7 @@ struct find_mul_conv
...
@@ -27,8 +27,7 @@ struct find_mul_conv
{
{
auto
matcher
()
const
auto
matcher
()
const
{
{
return
match
::
name
(
"mul"
)(
match
::
either_arg
(
0
,
1
)(
return
match
::
name
(
"mul"
)(
match
::
either_arg
(
0
,
1
)(
conv_const_weights
().
bind
(
"conv"
),
conv_const_weights
().
bind
(
"conv"
),
match
::
name
(
"broadcast"
).
bind
(
"a"
)));
match
::
name
(
"broadcast"
).
bind
(
"a"
)));
}
}
...
@@ -57,9 +56,10 @@ struct find_mul_add
...
@@ -57,9 +56,10 @@ struct find_mul_add
auto
matcher
()
const
auto
matcher
()
const
{
{
return
match
::
name
(
"mul"
)(
match
::
either_arg
(
0
,
1
)(
return
match
::
name
(
"mul"
)(
match
::
either_arg
(
0
,
1
)(
match
::
name
(
"add"
)(
match
::
either_arg
(
0
,
1
)(
match
::
any
().
bind
(
"x"
),
match
::
any_of
(
conv_const_weights
(),
match
::
is_constant
()).
bind
(
"y"
))),
match
::
name
(
"add"
)(
match
::
either_arg
(
0
,
1
)(
match
::
is_constant
().
bind
(
"a"
)
match
::
any
().
bind
(
"x"
),
));
match
::
any_of
(
conv_const_weights
(),
match
::
is_constant
()).
bind
(
"y"
))),
match
::
is_constant
().
bind
(
"a"
)));
}
}
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