15 ShapeMainFixture(
const std::string& inputType,
16 const std::string& outputType,
17 const std::string& outputDim,
18 const std::vector<int>& inputShape)
22 producer_name: "onnx-example" 34 elem_type: )" + inputType + R"( 45 elem_type: )" + outputType + R"( 48 dim_value: )" + outputDim + R"( 61 struct ShapeFloatFixture : ShapeMainFixture
63 ShapeFloatFixture() : ShapeMainFixture(
"1",
"7",
"4", { 1, 3, 1, 5 })
69 struct ShapeIntFixture : ShapeMainFixture
71 ShapeIntFixture() : ShapeMainFixture(
"7",
"7",
"4", { 1, 3, 1, 5 })
77 struct Shape3DFixture : ShapeMainFixture
79 Shape3DFixture() : ShapeMainFixture(
"1",
"7",
"3", { 3, 2, 3 })
85 struct Shape2DFixture : ShapeMainFixture
87 Shape2DFixture() : ShapeMainFixture(
"1",
"7",
"2", { 2, 3 })
93 struct Shape1DFixture : ShapeMainFixture
95 Shape1DFixture() : ShapeMainFixture(
"1",
"7",
"1", { 5 })
103 RunTest<1, int>({{
"Input", { 0.0f, 1.0f, 2.0f, 3.0f, 4.0f,
104 4.0f, 3.0f, 2.0f, 1.0f, 0.0f,
105 0.0f, 1.0f, 2.0f, 3.0f, 4.0f }}}, {{
"Output", { 1, 3, 1, 5 }}});
110 RunTest<1, int>({{
"Input", { 0, 1, 2, 3, 4,
112 0, 1, 2, 3, 4 }}}, {{
"Output", { 1, 3, 1, 5 }}});
117 RunTest<1, int>({{
"Input", { 0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f,
118 5.0f, 4.0f, 3.0f, 2.0f, 1.0f, 0.0f,
119 0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f }}}, {{
"Output", { 3, 2, 3 }}});
124 RunTest<1, int>({{
"Input", { 0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f }}}, {{
"Output", { 2, 3 }}});
129 RunTest<1, int>({{
"Input", { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f }}}, {{
"Output", { 5 }}});
std::string ConstructTensorShapeString(const std::vector< int > &shape)
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")