13 explicit ResizeBilinearFixture(
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_BILINEAR" } ], 25 "shape": )" + sizeShape + R"( , 37 "shape": )" + inputShape + R"(, 40 "name": "InputTensor", 49 "shape": )" + outputShape + R"( , 52 "name": "OutputTensor", 68 "builtin_options_type": "ResizeBilinearOptions", 71 "custom_options_format": "FLEXBUFFERS" 76 { "data": )" + sizeData + R"(, }, 87 struct SimpleResizeBilinearFixture : ResizeBilinearFixture
89 SimpleResizeBilinearFixture()
90 : ResizeBilinearFixture(
"[ 1, 3, 3, 1 ]",
93 "[ 5,0,0,0, 5,0,0,0 ]")
99 RunTest<4, armnn::DataType::Float32>(
101 {{
"InputTensor", { 0.0f, 1.0f, 2.0f,
103 6.0f, 7.0f, 8.0f }}},
104 {{
"OutputTensor", { 0.0f, 0.6f, 1.2f, 1.8f, 2.0f,
105 1.8f, 2.4f, 3.0f, 3.6f, 3.8f,
106 3.6f, 4.2f, 4.8f, 5.4f, 5.6f,
107 5.4f, 6.0f, 6.6f, 7.2f, 7.4f,
108 6.0f, 6.6f, 7.2f, 7.8f, 8.0f }}}
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")
void Setup(bool testDynamic=true)