9 TEST_SUITE(
"TensorflowLiteParser_ResizeNearestNeighbor")
13 explicit ResizeNearestNeighborFixture(
const std::string & inputShape,
14 const std::string & outputShape,
15 const std::string & sizeShape,
16 const std::string & sizeData)
21 "operator_codes": [ { "builtin_code": "RESIZE_NEAREST_NEIGHBOR" } ], 25 "shape": )" + sizeShape + R"( , 37 "shape": )" + inputShape + R"(, 40 "name": "InputTensor", 49 "shape": )" + outputShape + R"( , 52 "name": "OutputTensor", 68 "builtin_options_type": "ResizeNearestNeighborOptions", 71 "custom_options_format": "FLEXBUFFERS" 76 { "data": )" + sizeData + R"(, }, 87 struct SimpleResizeNearestNeighborFixture : ResizeNearestNeighborFixture
89 SimpleResizeNearestNeighborFixture()
90 : ResizeNearestNeighborFixture(
"[ 1, 2, 2, 1 ]",
93 "[ 1,0,0,0, 1,0,0,0 ]")
97 TEST_CASE_FIXTURE(SimpleResizeNearestNeighborFixture,
"ParseResizeNearestNeighbor")
99 RunTest<4, armnn::DataType::Float32>(
101 {{
"InputTensor", { 1.0f, 2.0f, 3.0f, 4.0f }}},
102 {{
"OutputTensor", { 1.0f }}});
TEST_SUITE("TensorflowLiteParser_ResizeNearestNeighbor")
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")
void Setup(bool testDynamic=true)