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
98c3690f
Commit
98c3690f
authored
Dec 07, 2018
by
Khalique
Browse files
add elu test
parent
0d053d71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
test/onnx/elu_test.onnx
test/onnx/elu_test.onnx
+14
-0
test/onnx/onnx_test.cpp
test/onnx/onnx_test.cpp
+11
-0
No files found.
test/onnx/elu_test.onnx
0 → 100644
View file @
98c3690f
elu-example:L
01"Elu*
alpha
#<
test-modelZ
0
b
1
B
\ No newline at end of file
test/onnx/onnx_test.cpp
View file @
98c3690f
...
@@ -265,6 +265,17 @@ TEST_CASE(tanh_test)
...
@@ -265,6 +265,17 @@ TEST_CASE(tanh_test)
EXPECT
(
p
==
prog
);
EXPECT
(
p
==
prog
);
}
}
TEST_CASE
(
elu_test
)
{
migraphx
::
program
p
;
auto
input
=
p
.
add_parameter
(
"0"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
3
}});
p
.
add_instruction
(
migraphx
::
op
::
elu
{
0.01
},
input
);
auto
prog
=
migraphx
::
parse_onnx
(
"elu_test.onnx"
);
EXPECT
(
p
==
prog
);
}
TEST_CASE
(
asin_test
)
TEST_CASE
(
asin_test
)
{
{
migraphx
::
program
p
;
migraphx
::
program
p
;
...
...
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