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
11f33609
Commit
11f33609
authored
May 09, 2022
by
turneram
Browse files
Fix scale and bias ops
parent
e47c0140
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/onnx/parse_layernorm.cpp
src/onnx/parse_layernorm.cpp
+2
-2
No files found.
src/onnx/parse_layernorm.cpp
View file @
11f33609
...
@@ -31,9 +31,9 @@ struct parse_layernorm : op_parser<parse_layernorm>
...
@@ -31,9 +31,9 @@ struct parse_layernorm : op_parser<parse_layernorm>
make_op
(
"layernorm"
,
{{
"epsilon"
,
epsilon
},
{
"axis"
,
axis
}}),
args
.
front
());
make_op
(
"layernorm"
,
{{
"epsilon"
,
epsilon
},
{
"axis"
,
axis
}}),
args
.
front
());
if
(
args
.
size
()
>=
2
)
if
(
args
.
size
()
>=
2
)
layernorm
=
info
.
add_
instruction
(
make
_op
(
"mul"
)
,
layernorm
,
args
.
at
(
1
));
layernorm
=
info
.
add_
broadcastable_binary
_op
(
"mul"
,
layernorm
,
args
.
at
(
1
));
if
(
args
.
size
()
==
3
)
if
(
args
.
size
()
==
3
)
layernorm
=
info
.
add_
instruction
(
make
_op
(
"add"
)
,
layernorm
,
args
.
at
(
2
));
layernorm
=
info
.
add_
broadcastable_binary
_op
(
"add"
,
layernorm
,
args
.
at
(
2
));
return
layernorm
;
return
layernorm
;
}
}
...
...
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