Go to the source code of this file.
◆ TEST_SUITE()
TEST_SUITE |
( |
"Deserializer_Multiplication" |
| ) |
|
Definition at line 13 of file DeserializeMultiplication.cpp.
References armnn::IgnoreUnused(), ParserFlatbuffersSerializeFixture::Setup(), and TEST_CASE_FIXTURE().
17 explicit MultiplicationFixture(
const std::string & inputShape1,
18 const std::string & inputShape2,
19 const std::string & outputShape,
20 const std::string & dataType,
21 const std::string & activation=
"NONE")
30 layer_type: "InputLayer", 36 layerName: "InputLayer1", 40 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 45 dimensions: )" + inputShape1 + R"(, 46 dataType: )" + dataType + R"( 52 layer_type: "InputLayer", 58 layerName: "InputLayer2", 62 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 67 dimensions: )" + inputShape2 + R"(, 68 dataType: )" + dataType + R"( 74 layer_type: "MultiplicationLayer", 78 layerName: "MultiplicationLayer", 79 layerType: "Multiplication", 83 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 87 connection: {sourceLayerIndex:1, outputSlotIndex:0 }, 93 dimensions: )" + outputShape + R"(, 94 dataType: )" + dataType + R"( 100 layer_type: "OutputLayer", 106 layerName: "OutputLayer", 110 connection: {sourceLayerIndex:2, outputSlotIndex:0 }, 115 dimensions: )" + outputShape + R"(, 116 dataType: )" + dataType + R"( 128 struct SimpleMultiplicationFixture : MultiplicationFixture
130 SimpleMultiplicationFixture() : MultiplicationFixture(
"[ 2, 2 ]",
133 "QuantisedAsymm8") {}
136 struct SimpleMultiplicationFixture2 : MultiplicationFixture
138 SimpleMultiplicationFixture2() : MultiplicationFixture(
"[ 2, 2, 1, 1 ]",
146 RunTest<2, armnn::DataType::QAsymmU8>(
148 {{
"InputLayer1", { 0, 1, 2, 3 }},
149 {
"InputLayer2", { 4, 5, 6, 7 }}},
150 {{
"OutputLayer", { 0, 5, 12, 21 }}});
155 RunTest<4, armnn::DataType::Float32>(
157 {{
"InputLayer1", { 100, 40, 226, 9 }},
158 {
"InputLayer2", { 5, 8, 1, 12 }}},
159 {{
"OutputLayer", { 500, 320, 226, 108 }}});
void IgnoreUnused(Ts &&...)
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")