Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
4446ca3a
Commit
4446ca3a
authored
Aug 29, 2019
by
Khalique
Browse files
fix test naming and order
parent
8c1f0289
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
test/onnx/onnx_test.cpp
test/onnx/onnx_test.cpp
+12
-12
No files found.
test/onnx/onnx_test.cpp
View file @
4446ca3a
...
...
@@ -58,7 +58,7 @@ TEST_CASE(add_scalar_test)
EXPECT
(
p
==
prog
);
}
TEST_CASE
(
argmax
)
TEST_CASE
(
argmax
_test
)
{
migraphx
::
program
p
;
auto
l0
=
p
.
add_parameter
(
"x"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
3
,
4
,
5
,
6
}});
...
...
@@ -69,7 +69,7 @@ TEST_CASE(argmax)
EXPECT
(
p
==
prog
);
}
TEST_CASE
(
argmin
)
TEST_CASE
(
argmin
_test
)
{
migraphx
::
program
p
;
auto
l0
=
p
.
add_parameter
(
"x"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
3
,
4
,
5
,
6
}});
...
...
@@ -841,6 +841,16 @@ TEST_CASE(reshape_non_standard_test)
EXPECT
(
p
==
prog
);
}
TEST_CASE
(
round_test
)
{
migraphx
::
program
p
;
auto
input
=
p
.
add_parameter
(
"x"
,
migraphx
::
shape
{
migraphx
::
shape
::
double_type
,
{
10
,
5
}});
p
.
add_instruction
(
migraphx
::
op
::
round
{},
input
);
auto
prog
=
migraphx
::
parse_onnx
(
"round_test.onnx"
);
EXPECT
(
p
==
prog
);
}
TEST_CASE
(
shape_test
)
{
migraphx
::
program
p
;
...
...
@@ -1054,14 +1064,4 @@ TEST_CASE(unknown_test)
EXPECT
(
p
==
prog
);
}
TEST_CASE
(
round_test
)
{
migraphx
::
program
p
;
auto
input
=
p
.
add_parameter
(
"x"
,
migraphx
::
shape
{
migraphx
::
shape
::
double_type
,
{
10
,
5
}});
p
.
add_instruction
(
migraphx
::
op
::
round
{},
input
);
auto
prog
=
migraphx
::
parse_onnx
(
"round_test.onnx"
);
EXPECT
(
p
==
prog
);
}
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