6 #include <boost/test/unit_test.hpp> 8 #include "../TfLiteParser.hpp" 19 explicit ResizeBilinearFixture(
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_BILINEAR" } ], 31 "shape": )" + sizeShape + R"( , 43 "shape": )" + inputShape + R"(, 46 "name": "InputTensor", 55 "shape": )" + outputShape + R"( , 58 "name": "OutputTensor", 74 "builtin_options_type": "ResizeBilinearOptions", 77 "custom_options_format": "FLEXBUFFERS" 82 { "data": )" + sizeData + R"(, }, 93 struct SimpleResizeBilinearFixture : ResizeBilinearFixture
95 SimpleResizeBilinearFixture()
96 : ResizeBilinearFixture(
"[ 1, 3, 3, 1 ]",
99 "[ 5,0,0,0, 5,0,0,0 ]")
105 RunTest<4, armnn::DataType::Float32>(
107 {{
"InputTensor", { 0.0f, 1.0f, 2.0f,
109 6.0f, 7.0f, 8.0f }}},
110 {{
"OutputTensor", { 0.0f, 0.6f, 1.2f, 1.8f, 2.0f,
111 1.8f, 2.4f, 3.0f, 3.6f, 3.8f,
112 3.6f, 4.2f, 4.8f, 5.4f, 5.6f,
113 5.4f, 6.0f, 6.6f, 7.2f, 7.4f,
114 6.0f, 6.6f, 7.2f, 7.8f, 8.0f }}}
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
BOOST_AUTO_TEST_SUITE_END()
BOOST_FIXTURE_TEST_CASE(ParseResizeBilinear, SimpleResizeBilinearFixture)