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
eb03b8c2
Commit
eb03b8c2
authored
Mar 04, 2019
by
Khalique
Browse files
fix onnx tests
parent
220141e7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
test/onnx/constant_scalar.onnx
test/onnx/constant_scalar.onnx
+4
-4
test/onnx/onnx_test.cpp
test/onnx/onnx_test.cpp
+2
-2
test/onnx/sum_test.onnx
test/onnx/sum_test.onnx
+3
-3
test/onnx/unknown_test.onnx
test/onnx/unknown_test.onnx
+4
-4
No files found.
test/onnx/constant_scalar.onnx
View file @
eb03b8c2
shape-gathe
r-example:
O
2value
"Constant*
value*
*Bconst_tensor
constantb
z
constant-scala
r-example:
R
00
"Constant*
!
value*
*Bconst_tensor
test-
constantb
0
B
\ No newline at end of file
test/onnx/onnx_test.cpp
View file @
eb03b8c2
...
...
@@ -470,8 +470,8 @@ TEST_CASE(flatten_test)
{
migraphx
::
program
p
;
auto
l0
=
p
.
add_parameter
(
"0"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
2
,
3
,
4
,
5
}});
p
.
add_instruction
(
migraphx
::
op
::
flatten
{
1
},
l0
);
p
.
add_instruction
(
migraphx
::
op
::
flatten
{
2
},
l0
);
p
.
add_instruction
(
migraphx
::
op
::
flatten
{
1
},
l0
);
auto
prog
=
migraphx
::
parse_onnx
(
"flatten_test.onnx"
);
EXPECT
(
p
==
prog
);
...
...
@@ -524,7 +524,7 @@ TEST_CASE(constant_test)
TEST_CASE
(
constant_test_scalar
)
{
migraphx
::
program
p
;
p
.
add_literal
(
migraphx
::
literal
{
migraphx
::
shape
{
migraphx
::
shape
::
int32_type
},
{
1
}});
p
.
add_literal
(
migraphx
::
literal
{
migraphx
::
shape
{
migraphx
::
shape
::
int32_type
,
{
1
}
},
{
1
}});
auto
prog
=
migraphx
::
parse_onnx
(
"constant_scalar.onnx"
);
EXPECT
(
p
==
prog
);
...
...
test/onnx/sum_test.onnx
View file @
eb03b8c2
sum-example:
e
sum-example:
a
0
1
23"Sum
test-
dropout
Z
23"Sum
test-
sum
Z
0
...
...
@@ -15,7 +15,7 @@
b
2
3
B
\ No newline at end of file
test/onnx/unknown_test.onnx
View file @
eb03b8c2
unknown-example:
unknown-example:
0
12"Unknown
2"Unknowntest-unknownZ
2
3
"Unknowntest-unknownZ
0
...
...
@@ -14,7 +14,7 @@
b
2
3
...
...
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