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
4c1a1d63
"test/srt/git@developer.sourcefind.cn:change/sglang.git" did not exist on "b6c14ec0b4f3d7f744c734a3835298b3242a2b90"
Commit
4c1a1d63
authored
Feb 26, 2019
by
Shucai Xiao
Browse files
add one more constant test case for better code coverage
parent
504aaf8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
test/onnx/constant_scalar.onnx
test/onnx/constant_scalar.onnx
+7
-0
test/onnx/onnx_test.cpp
test/onnx/onnx_test.cpp
+9
-0
No files found.
test/onnx/constant_scalar.onnx
0 → 100644
View file @
4c1a1d63
shape-gather-example:O
2value"Constant*
value**Bconst_tensor constantb
z
B
\ No newline at end of file
test/onnx/onnx_test.cpp
View file @
4c1a1d63
...
@@ -521,6 +521,15 @@ TEST_CASE(constant_test)
...
@@ -521,6 +521,15 @@ TEST_CASE(constant_test)
EXPECT
(
p
==
prog
);
EXPECT
(
p
==
prog
);
}
}
TEST_CASE
(
constant_test_scalar
)
{
migraphx
::
program
p
;
p
.
add_literal
(
migraphx
::
literal
{
migraphx
::
shape
{
migraphx
::
shape
::
int32_type
,
{
1
},
{
0
}},
{
1
}});
auto
prog
=
migraphx
::
parse_onnx
(
"constant_scalar.onnx"
);
EXPECT
(
p
==
prog
);
}
TEST_CASE
(
constant_fill_test
)
TEST_CASE
(
constant_fill_test
)
{
{
{
{
...
...
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