"test/srt/git@developer.sourcefind.cn:change/sglang.git" did not exist on "b6c14ec0b4f3d7f744c734a3835298b3242a2b90"
Commit 4c1a1d63 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

add one more constant test case for better code coverage

parent 504aaf8d
shape-gather-example:O
2value"Constant*
value**B const_tensor constantb
z

B
\ No newline at end of file
...@@ -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)
{ {
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment