15 explicit PermuteFixture(
const std::string &inputShape,
16 const std::string &dimMappings,
17 const std::string &outputShape,
18 const std::string &dataType)
26 layer_type: "InputLayer", 32 layerName: "InputLayer", 36 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 41 dimensions: )" + inputShape + R"(, 42 dataType: )" + dataType + R"( 50 layer_type: "PermuteLayer", 54 layerName: "PermuteLayer", 58 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 63 dimensions: )" + outputShape + R"(, 64 dataType: )" + dataType + R"( 69 dimMappings: )" + dimMappings + R"(, 74 layer_type: "OutputLayer", 80 layerName: "OutputLayer", 84 connection: {sourceLayerIndex:1, outputSlotIndex:0 }, 89 dimensions: )" + outputShape + R"(, 90 dataType: )" + dataType + R"( 104 struct SimplePermute2DFixture : PermuteFixture
106 SimplePermute2DFixture() : PermuteFixture(
"[ 2, 3 ]",
109 "QuantisedAsymm8") {}
114 RunTest<2, armnn::DataType::QAsymmU8>(0,
115 { 1, 2, 3, 4, 5, 6 },
116 { 1, 4, 2, 5, 3, 6 });
119 struct SimplePermute4DFixture : PermuteFixture
121 SimplePermute4DFixture() : PermuteFixture(
"[ 1, 2, 3, 4 ]",
124 "QuantisedAsymm8") {}
129 RunTest<4, armnn::DataType::QAsymmU8>(0,
130 { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
131 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 },
132 { 1, 13, 5, 17, 9, 21, 2, 14, 6, 18, 10, 22,
133 3, 15, 7, 19, 11, 23, 4, 16, 8, 20, 12, 24 });
void SetupSingleInputSingleOutput(const std::string &inputName, const std::string &outputName)
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")
TEST_SUITE("Deserializer_Permute")