15 explicit PadFixture(
const std::string& inputShape,
16 const std::string& padList,
17 const std::string& outputShape,
18 const std::string& dataType,
19 const std::string& paddingMode)
27 layer_type: "InputLayer", 33 layerName: "InputLayer", 37 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 42 dimensions: )" + inputShape + R"(, 43 dataType: )" + dataType + R"( 51 layer_type: "PadLayer", 55 layerName: "PadLayer", 59 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 64 dimensions: )" + outputShape + R"(, 65 dataType: )" + dataType + R"( 70 padList: )" + padList + R"(, 71 paddingMode: )" + paddingMode + R"(, 76 layer_type: "OutputLayer", 82 layerName: "OutputLayer", 86 connection: {sourceLayerIndex:1, outputSlotIndex:0 }, 91 dimensions: )" + outputShape + R"(, 92 dataType: )" + dataType + R"( 106 struct SimplePadFixture : PadFixture
108 SimplePadFixture() : PadFixture(
"[ 2, 2, 2 ]",
109 "[ 0, 1, 2, 1, 2, 2 ]",
117 RunTest<3, armnn::DataType::QAsymmU8>(0,
119 0, 4, 2, 5, 6, 1, 5, 2
122 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
123 4, 0, 0, 0, 0, 2, 5, 0, 0, 0, 0, 0, 0, 0, 0,
124 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6,
125 1, 0, 0, 0, 0, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0,
126 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
127 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
131 struct SimplePadSymmetricFixture : PadFixture
133 SimplePadSymmetricFixture() : PadFixture(
"[ 2, 2, 2 ]",
134 "[ 1, 1, 1, 1, 1, 1 ]",
140 TEST_CASE_FIXTURE(SimplePadSymmetricFixture,
"SimplePadSymmetricQuantisedAsymm8")
142 RunTest<3, armnn::DataType::QAsymmU8>(0,
173 struct SimplePadReflectFixture : PadFixture
175 SimplePadReflectFixture() : PadFixture(
"[ 2, 2, 2 ]",
176 "[ 1, 1, 1, 1, 1, 1 ]",
184 RunTest<3, armnn::DataType::QAsymmU8>(0,
void SetupSingleInputSingleOutput(const std::string &inputName, const std::string &outputName)
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")
TEST_SUITE("Deserializer_Pad")