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
f715ad3f
Commit
f715ad3f
authored
Jul 05, 2022
by
Ted Themistokleous
Browse files
fixup! Add skip_broadcasts to simplify algebra value matchers
parent
a25058de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/simplify_algebra.cpp
src/simplify_algebra.cpp
+2
-2
No files found.
src/simplify_algebra.cpp
View file @
f715ad3f
...
...
@@ -916,9 +916,9 @@ struct find_zero_ops
auto
matcher
()
const
{
auto
mul_zero
=
match
::
name
(
"mul"
)(
match
::
either_arg
(
0
,
1
)(
match
::
skip_broadcasts
(
match
::
has_value
(
0.0
f
).
bind
(
"x"
)
)
,
match
::
any
()));
match
::
has_value
(
0.0
f
).
bind
(
"x"
),
match
::
any
()));
auto
div_zero
=
match
::
name
(
"div"
)(
match
::
args
(
match
::
skip_broadcasts
(
match
::
has_value
(
0.0
f
).
bind
(
"x"
)
)
,
match
::
any
())
)
;
match
::
has_value
(
0.0
f
).
bind
(
"x"
),
match
::
any
());
return
match
::
any_of
(
mul_zero
,
div_zero
);
}
...
...
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