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
a80f5b19
"test/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "fbd12bd3cb309fbf95415b0063ffd04e73d3d4f2"
Commit
a80f5b19
authored
Jun 01, 2022
by
turneram
Browse files
Add axis to layernorm onnx op
parent
5818ebde
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
test/onnx/gen_onnx.py
test/onnx/gen_onnx.py
+2
-1
test/onnx/layernorm_op_test.onnx
test/onnx/layernorm_op_test.onnx
+4
-3
No files found.
test/onnx/gen_onnx.py
View file @
a80f5b19
...
@@ -2654,7 +2654,8 @@ def layernorm_op_test():
...
@@ -2654,7 +2654,8 @@ def layernorm_op_test():
node
=
onnx
.
helper
.
make_node
(
'LayerNormalization'
,
node
=
onnx
.
helper
.
make_node
(
'LayerNormalization'
,
inputs
=
[
'x'
,
'w'
,
'b'
],
inputs
=
[
'x'
,
'w'
,
'b'
],
outputs
=
[
"output"
],
outputs
=
[
"output"
],
epsilon
=
1e-5
)
epsilon
=
1e-5
,
axis
=-
1
)
return
([
node
],
[
x
,
w
,
b
],
[
output
])
return
([
node
],
[
x
,
w
,
b
],
[
output
])
...
...
test/onnx/layernorm_op_test.onnx
View file @
a80f5b19
layernorm_op_test:
layernorm_op_test:
8
N
x
x
w
w
boutput"LayerNormalization*
boutput"LayerNormalization*
axis*
epsilon'7layernorm_op_testZ
epsilon'7layernorm_op_testZ
x
x
...
...
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