12 explicit MaxPool2DFixture(std::string inputdim, std::string outputdim, std::string dataType)
17 "operator_codes": [ { "builtin_code": "MAX_POOL_2D" } ], 29 "name": "OutputTensor", 45 "name": "InputTensor", 60 "builtin_options_type": "Pool2DOptions", 68 "fused_activation_function": "NONE" 70 "custom_options_format": "FLEXBUFFERS" 74 "description": "MaxPool2D test.", 75 "buffers" : [ {}, {} ] 83 struct MaxPoolLiteFixtureUint1DOutput : MaxPool2DFixture
85 MaxPoolLiteFixtureUint1DOutput() : MaxPool2DFixture(
"[ 1, 2, 2, 1 ]",
"[ 1, 1, 1, 1 ]",
"UINT8") {}
88 struct MaxPoolLiteFixtureFloat1DOutput : MaxPool2DFixture
90 MaxPoolLiteFixtureFloat1DOutput() : MaxPool2DFixture(
"[ 1, 2, 2, 1 ]",
"[ 1, 1, 1, 1 ]",
"FLOAT32") {}
93 struct MaxPoolLiteFixtureUint2DOutput : MaxPool2DFixture
95 MaxPoolLiteFixtureUint2DOutput() : MaxPool2DFixture(
"[ 1, 4, 4, 1 ]",
"[ 1, 2, 2, 1 ]",
"UINT8") {}
100 RunTest<4, armnn::DataType::QAsymmU8>(0, { 2, 3, 5, 2 }, { 5 });
105 RunTest<4, armnn::DataType::Float32>(0, { 2.0f, 3.0f, 5.0f, 2.0f }, { 5.0f });
110 RunTest<4, armnn::DataType::QAsymmU8>(
111 0, { 1, 2, 2, 3, 5, 6, 7, 8, 3, 2, 1, 0, 1, 2, 3, 4 }, { 6, 8, 3, 4 });
114 TEST_CASE_FIXTURE(MaxPoolLiteFixtureFloat1DOutput,
"MaxPoolIncorrectDataTypeError")
116 CHECK_THROWS_AS((RunTest<4, armnn::DataType::QAsymmU8>(0, { 2, 3, 5, 2 }, { 5 })),
armnn::Exception);
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")
void SetupSingleInputSingleOutput(const std::string &inputName, const std::string &outputName)
Base class for all ArmNN exceptions so that users can filter to just those.
TEST_SUITE("TensorflowLiteParser_MaxPool2D")