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
276dda76
Commit
276dda76
authored
May 26, 2022
by
turneram
Browse files
Formatting
parent
b749df60
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
src/onnx/parse_attention.cpp
src/onnx/parse_attention.cpp
+3
-3
src/onnx/parse_layernorm.cpp
src/onnx/parse_layernorm.cpp
+15
-15
No files found.
src/onnx/parse_attention.cpp
View file @
276dda76
src/onnx/parse_layernorm.cpp
View file @
276dda76
...
...
@@ -44,8 +44,8 @@ struct parse_layernorm : op_parser<parse_layernorm>
auto
mean_mbcast
=
info
.
add_instruction
(
migraphx
::
make_op
(
"multibroadcast"
,
{{
"out_lens"
,
dims
}}),
mean
);
auto
sub
=
info
.
add_instruction
(
migraphx
::
make_op
(
"sub"
),
x
,
mean_mbcast
);
auto
exponent_mbcast
=
info
.
add_instruction
(
migraphx
::
make_op
(
"multibroadcast"
,
{{
"out_lens"
,
dims
}}),
exponent
);
auto
exponent_mbcast
=
info
.
add_instruction
(
migraphx
::
make_op
(
"multibroadcast"
,
{{
"out_lens"
,
dims
}}),
exponent
);
auto
pow
=
info
.
add_instruction
(
migraphx
::
make_op
(
"pow"
),
sub
,
exponent_mbcast
);
auto
var
=
info
.
add_instruction
(
migraphx
::
make_op
(
"reduce_mean"
,
{{
"axes"
,
{
axis
}}}),
pow
);
auto
add_epsilon
=
info
.
add_broadcastable_binary_op
(
"add"
,
var
,
epsilon_lit
);
...
...
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