6 #include <boost/test/unit_test.hpp> 8 #include "../TfLiteParser.hpp" 17 explicit ResizeNearestNeighborFixture(
const std::string & inputShape,
18 const std::string & outputShape,
19 const std::string & sizeShape,
20 const std::string & sizeData)
25 "operator_codes": [ { "builtin_code": "RESIZE_NEAREST_NEIGHBOR" } ], 29 "shape": )" + sizeShape + R"( , 41 "shape": )" + inputShape + R"(, 44 "name": "InputTensor", 53 "shape": )" + outputShape + R"( , 56 "name": "OutputTensor", 72 "builtin_options_type": "ResizeNearestNeighborOptions", 75 "custom_options_format": "FLEXBUFFERS" 80 { "data": )" + sizeData + R"(, }, 91 struct SimpleResizeNearestNeighborFixture : ResizeNearestNeighborFixture
93 SimpleResizeNearestNeighborFixture()
94 : ResizeNearestNeighborFixture(
"[ 1, 2, 2, 1 ]",
97 "[ 1,0,0,0, 1,0,0,0 ]")
103 RunTest<4, armnn::DataType::Float32>(
105 {{
"InputTensor", { 1.0f, 2.0f, 3.0f, 4.0f }}},
106 {{
"OutputTensor", { 1.0f }}});
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
BOOST_FIXTURE_TEST_CASE(ParseResizeNearestNeighbor, SimpleResizeNearestNeighborFixture)
BOOST_AUTO_TEST_SUITE_END()