13 explicit SubFixture(
const std::string & inputShape1,
14 const std::string & inputShape2,
15 const std::string & outputShape,
16 const std::string & activation=
"NONE")
21 "operator_codes": [ { "builtin_code": "SUB" } ], 25 "shape": )" + inputShape1 + R"(, 28 "name": "inputTensor1", 37 "shape": )" + inputShape2 + R"(, 40 "name": "inputTensor2", 49 "shape": )" + outputShape + R"( , 52 "name": "outputTensor", 68 "builtin_options_type": "SubOptions", 70 "fused_activation_function": )" + activation + R"( 72 "custom_options_format": "FLEXBUFFERS" 87 struct SimpleSubFixture : SubFixture
89 SimpleSubFixture() : SubFixture(
"[ 1, 4 ]",
96 RunTest<2, armnn::DataType::QAsymmU8>(
98 {{
"inputTensor1", { 4, 5, 6, 7 }},
99 {
"inputTensor2", { 3, 2, 1, 0 }}},
100 {{
"outputTensor", { 1, 3, 5, 7 }}});
103 struct DynamicSubFixture : SubFixture
105 DynamicSubFixture() : SubFixture(
"[ 1, 4 ]",
112 RunTest<2, armnn::DataType::QAsymmU8, armnn::DataType::QAsymmU8>(
114 {{
"inputTensor1", { 4, 5, 6, 7 }},
115 {
"inputTensor2", { 3, 2, 1, 0 }}},
116 {{
"outputTensor", { 1, 3, 5, 7 }}},
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")
void Setup(bool testDynamic=true)
TEST_SUITE("TensorflowLiteParser_Sub")