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
7084ca56
Commit
7084ca56
authored
Feb 04, 2019
by
Khalique
Browse files
added lrn onnx test
parent
f5216eee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
test/onnx/lrn_test.onnx
test/onnx/lrn_test.onnx
+0
-0
test/onnx/onnx_test.cpp
test/onnx/onnx_test.cpp
+14
-0
No files found.
test/onnx/lrn_test.onnx
0 → 100644
View file @
7084ca56
File added
test/onnx/onnx_test.cpp
View file @
7084ca56
...
@@ -610,4 +610,18 @@ TEST_CASE(pad_test)
...
@@ -610,4 +610,18 @@ TEST_CASE(pad_test)
migraphx
::
parse_onnx
(
"pad_test.onnx"
);
migraphx
::
parse_onnx
(
"pad_test.onnx"
);
}
}
TEST_CASE
(
lrn_test
)
{
migraphx
::
program
p
;
auto
l0
=
p
.
add_parameter
(
"0"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
1
,
28
,
24
,
24
}});
migraphx
::
op
::
lrn
op
;
op
.
size
=
5
;
op
.
alpha
=
0.0001
;
op
.
beta
=
0.75
;
op
.
bias
=
1.0
;
p
.
add_instruction
(
op
,
l0
);
migraphx
::
parse_onnx
(
"lrn_test.onnx"
);
}
int
main
(
int
argc
,
const
char
*
argv
[])
{
test
::
run
(
argc
,
argv
);
}
int
main
(
int
argc
,
const
char
*
argv
[])
{
test
::
run
(
argc
,
argv
);
}
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