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
3b414cc2
Commit
3b414cc2
authored
Aug 12, 2022
by
turneram
Browse files
Formatting
parent
99b79a7d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
src/include/migraphx/match/gelu_erf.hpp
src/include/migraphx/match/gelu_erf.hpp
+4
-5
src/rewrite_gelu.cpp
src/rewrite_gelu.cpp
+1
-4
No files found.
src/include/migraphx/match/gelu_erf.hpp
View file @
3b414cc2
...
@@ -74,8 +74,7 @@ struct bert_gelu_erf_matcher
...
@@ -74,8 +74,7 @@ struct bert_gelu_erf_matcher
F
f
;
F
f
;
auto
erf_fn
()
const
auto
erf_fn
()
const
{
{
return
f
(
"erf"
)(
return
f
(
"erf"
)(
used_once
(),
used_once
(),
arg
(
0
)(
used_once
(),
arg
(
0
)(
used_once
(),
f
(
"div"
)(
either_arg
(
0
,
1
)(
none_of
(
has_value
(
1.414
f
,
1e-3
)).
bind
(
"x"
),
f
(
"div"
)(
either_arg
(
0
,
1
)(
none_of
(
has_value
(
1.414
f
,
1e-3
)).
bind
(
"x"
),
has_value
(
1.414
f
,
1e-3
)))));
has_value
(
1.414
f
,
1e-3
)))));
...
...
src/rewrite_gelu.cpp
View file @
3b414cc2
...
@@ -32,10 +32,7 @@ inline namespace MIGRAPHX_INLINE_NS {
...
@@ -32,10 +32,7 @@ inline namespace MIGRAPHX_INLINE_NS {
struct
find_gelu_erf
struct
find_gelu_erf
{
{
auto
matcher
()
const
auto
matcher
()
const
{
return
match
::
bert_gelu_erf
();
}
{
return
match
::
bert_gelu_erf
();
}
void
apply
(
module
&
m
,
const
match
::
matcher_result
&
r
)
const
void
apply
(
module
&
m
,
const
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