15 explicit Pooling3dFixture(
const std::string &inputShape,
16 const std::string &outputShape,
17 const std::string &dataType,
18 const std::string &dataLayout,
19 const std::string &poolingAlgorithm)
27 layer_type: "InputLayer", 33 layerName: "InputLayer", 37 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 42 dimensions: )" + inputShape + R"(, 43 dataType: )" + dataType + R"( 48 layer_type: "Pooling3dLayer", 52 layerName: "Pooling3dLayer", 53 layerType: "Pooling3d", 56 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 61 dimensions: )" + outputShape + R"(, 62 dataType: )" + dataType + R"( 66 poolType: )" + poolingAlgorithm + R"(, 67 outputShapeRounding: "Floor", 68 paddingMethod: Exclude, 69 dataLayout: )" + dataLayout + R"(, 85 layer_type: "OutputLayer", 91 layerName: "OutputLayer", 95 connection: {sourceLayerIndex:1, outputSlotIndex:0 }, 100 dimensions: )" + outputShape + R"(, 101 dataType: )" + dataType + R"( 112 struct SimpleAvgPooling3dFixture : Pooling3dFixture
114 SimpleAvgPooling3dFixture() : Pooling3dFixture(
"[ 1, 2, 2, 2, 1 ]",
116 "Float32",
"NDHWC",
"Average") {}
119 struct SimpleAvgPooling3dFixture2 : Pooling3dFixture
121 SimpleAvgPooling3dFixture2() : Pooling3dFixture(
"[ 1, 2, 2, 2, 1 ]",
123 "QuantisedAsymm8",
"NDHWC",
"Average") {}
126 struct SimpleMaxPooling3dFixture : Pooling3dFixture
128 SimpleMaxPooling3dFixture() : Pooling3dFixture(
"[ 1, 1, 2, 2, 2 ]",
130 "Float32",
"NCDHW",
"Max") {}
133 struct SimpleMaxPooling3dFixture2 : Pooling3dFixture
135 SimpleMaxPooling3dFixture2() : Pooling3dFixture(
"[ 1, 1, 2, 2, 2 ]",
137 "QuantisedAsymm8",
"NCDHW",
"Max") {}
140 struct SimpleL2Pooling3dFixture : Pooling3dFixture
142 SimpleL2Pooling3dFixture() : Pooling3dFixture(
"[ 1, 2, 2, 2, 1 ]",
144 "Float32",
"NDHWC",
"L2") {}
149 RunTest<5, armnn::DataType::Float32>(0, { 2, 3, 5, 2, 3, 2, 3, 4 }, { 3 });
154 RunTest<5, armnn::DataType::QAsymmU8>(0,{ 20, 40, 60, 80, 50, 60, 70, 30 },{ 50 });
159 RunTest<5, armnn::DataType::Float32>(0, { 2, 5, 5, 2, 1, 3, 4, 0 }, { 5 });
164 RunTest<5, armnn::DataType::QAsymmU8>(0,{ 20, 40, 60, 80, 10, 40, 0, 70 },{ 80 });
169 RunTest<5, armnn::DataType::Float32>(0, { 2, 3, 5, 2, 4, 1, 1, 3 }, { 2.93683503112f });
void SetupSingleInputSingleOutput(const std::string &inputName, const std::string &outputName)
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")
TEST_SUITE("Deserializer_Pooling3d")