"website/pages/vscode:/vscode.git/clone" did not exist on "16d0aa82c1bbf3788571c651f5149f3c4e91a47a"
Commit 04b3214a authored by Shucai Xiao's avatar Shucai Xiao
Browse files

Add a test for parsing shape operator.

parent 0d8a9768
...@@ -400,6 +400,18 @@ TEST_CASE(reshape_test) ...@@ -400,6 +400,18 @@ TEST_CASE(reshape_test)
EXPECT(p == prog); EXPECT(p == prog);
} }
TEST_CASE(shape_test)
{
migraphx::program p;
migraphx::shape s{migraphx::shape::float_type, {3, 4, 5, 6}};
auto l0 = p.add_parameter("x", s);
migraphx::shape s_shape{migraphx::shape::int64_type, {4}};
p.add_literal(s_shape, l0->get_shape().lens());
auto prog = migraphx::parse_onnx("shape_test.onnx");
EXPECT(p == prog);
}
TEST_CASE(gather_test) TEST_CASE(gather_test)
{ {
migraphx::program p; migraphx::program p;
......
 shape-example:I
xy"Shape
test_shapeZ
x




b
y

B
\ No newline at end of file
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