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
515a9096
Commit
515a9096
authored
Jul 08, 2022
by
turneram
Browse files
Use div in matcher instead of mul
parent
9b7a906d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/simplify_algebra.cpp
src/simplify_algebra.cpp
+7
-1
No files found.
src/simplify_algebra.cpp
View file @
515a9096
...
...
@@ -853,13 +853,19 @@ struct find_div_const
struct
find_gelu_erf
{
static
auto
match_div
()
{
return
match
::
name
(
"div"
)(
args
(
match
::
any
().
bind
(
"x"
),
match
::
skip_broadcasts
(
match
::
is_constant
())));
}
static
auto
match_mul1
()
{
return
match
::
name
(
"mul"
)(
args
(
match
::
any
().
bind
(
"x"
),
match
::
skip_broadcasts
(
match
::
name
(
"recip"
))));
}
static
auto
match_erf
()
{
return
match
::
name
(
"erf"
)(
match
::
arg
(
0
)(
match_
mul1
()));
}
static
auto
match_erf
()
{
return
match
::
name
(
"erf"
)(
match
::
arg
(
0
)(
match_
div
()));
}
static
auto
match_add2
()
{
...
...
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