6 #include <boost/test/unit_test.hpp> 8 #include "../TfLiteParser.hpp" 19 explicit ResizeNearestNeighborFixture(
const std::string & inputShape,
20 const std::string & outputShape,
21 const std::string & sizeShape,
22 const std::string & sizeData)
27 "operator_codes": [ { "builtin_code": "RESIZE_NEAREST_NEIGHBOR" } ], 31 "shape": )" + sizeShape + R"( , 43 "shape": )" + inputShape + R"(, 46 "name": "InputTensor", 55 "shape": )" + outputShape + R"( , 58 "name": "OutputTensor", 74 "builtin_options_type": "ResizeNearestNeighborOptions", 77 "custom_options_format": "FLEXBUFFERS" 82 { "data": )" + sizeData + R"(, }, 93 struct SimpleResizeNearestNeighborFixture : ResizeNearestNeighborFixture
95 SimpleResizeNearestNeighborFixture()
96 : ResizeNearestNeighborFixture(
"[ 1, 2, 2, 1 ]",
99 "[ 1,0,0,0, 1,0,0,0 ]")
105 RunTest<4, armnn::DataType::Float32>(
107 {{
"InputTensor", { 1.0f, 2.0f, 3.0f, 4.0f }}},
108 {{
"OutputTensor", { 1.0f }}});
BOOST_FIXTURE_TEST_CASE(ParseResizeNearestNeighbor, SimpleResizeNearestNeighborFixture)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)