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
c2c5a632
Commit
c2c5a632
authored
Jul 07, 2022
by
turneram
Browse files
Formatting
parent
cab8156e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
src/simplify_algebra.cpp
src/simplify_algebra.cpp
+10
-7
No files found.
src/simplify_algebra.cpp
View file @
c2c5a632
...
...
@@ -855,19 +855,22 @@ struct find_gelu_erf
{
static
auto
match_mul1
()
{
return
match
::
name
(
"mul"
)(
args
(
match
::
any
().
bind
(
"x"
),
match
::
skip_broadcasts
(
match
::
name
(
"recip"
))));
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_add2
()
{
return
match
::
name
(
"add"
)(
args
(
match_erf
(),
match
::
skip_broadcasts
(
match
::
has_value
(
1.0
f
))));
return
match
::
name
(
"add"
)(
args
(
match_erf
(),
match
::
skip_broadcasts
(
match
::
has_value
(
1.0
f
))));
}
static
auto
match_add1
()
{
return
match
::
name
(
"add"
)(
args
(
match
::
skip_broadcasts
(
match
::
is_constant
()),
match
::
name
(
"dot"
)));
return
match
::
name
(
"add"
)(
args
(
match
::
skip_broadcasts
(
match
::
is_constant
()),
match
::
name
(
"dot"
)));
}
static
auto
match_mul2
()
{
return
match
::
name
(
"mul"
)(
match
::
args
(
match_add1
(),
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