6 #include <boost/test/unit_test.hpp> 8 #include "../Deserializer.hpp" 16 explicit PadFixture(
const std::string &inputShape,
17 const std::string &padList,
18 const std::string &outputShape,
19 const std::string &dataType)
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"(, 75 layer_type: "OutputLayer", 81 layerName: "OutputLayer", 85 connection: {sourceLayerIndex:1, outputSlotIndex:0 }, 90 dimensions: )" + outputShape + R"(, 91 dataType: )" + dataType + R"( 105 struct SimplePadFixture : PadFixture
107 SimplePadFixture() : PadFixture(
"[ 2, 2, 2 ]",
108 "[ 0, 1, 2, 1, 2, 2 ]",
110 "QuantisedAsymm8") {}
115 RunTest<3, armnn::DataType::QAsymmU8>(0,
117 0, 4, 2, 5, 6, 1, 5, 2
120 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
121 4, 0, 0, 0, 0, 2, 5, 0, 0, 0, 0, 0, 0, 0, 0,
122 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6,
123 1, 0, 0, 0, 0, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0,
124 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
125 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
void SetupSingleInputSingleOutput(const std::string &inputName, const std::string &outputName)
BOOST_FIXTURE_TEST_CASE(SimplePadQuantisedAsymm8, SimplePadFixture)
BOOST_AUTO_TEST_SUITE_END()