Go to the source code of this file.
◆ TEST_SUITE()
TEST_SUITE |
( |
"Deserializer_Division" |
| ) |
|
Definition at line 11 of file DeserializeDivision.cpp.
References ParserFlatbuffersSerializeFixture::Setup(), and TEST_CASE_FIXTURE().
15 explicit DivisionFixture(
const std::string & inputShape1,
16 const std::string & inputShape2,
17 const std::string & outputShape,
18 const std::string & dataType)
26 layer_type: "InputLayer", 32 layerName: "InputLayer1", 36 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 41 dimensions: )" + inputShape1 + R"(, 42 dataType: )" + dataType + R"( 48 layer_type: "InputLayer", 54 layerName: "InputLayer2", 58 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 63 dimensions: )" + inputShape2 + R"(, 64 dataType: )" + dataType + R"( 70 layer_type: "DivisionLayer", 74 layerName: "DivisionLayer", 75 layerType: "Division", 79 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 83 connection: {sourceLayerIndex:1, outputSlotIndex:0 }, 89 dimensions: )" + outputShape + R"(, 90 dataType: )" + dataType + R"( 96 layer_type: "OutputLayer", 102 layerName: "OutputLayer", 106 connection: {sourceLayerIndex:2, outputSlotIndex:0 }, 111 dimensions: )" + outputShape + R"(, 112 dataType: )" + dataType + R"( 124 struct SimpleDivisionFixture : DivisionFixture
126 SimpleDivisionFixture() : DivisionFixture(
"[ 2, 2 ]",
129 "QuantisedAsymm8") {}
132 struct SimpleDivisionFixture2 : DivisionFixture
134 SimpleDivisionFixture2() : DivisionFixture(
"[ 2, 2, 1, 1 ]",
142 RunTest<2, armnn::DataType::QAsymmU8>(
144 {{
"InputLayer1", { 0, 5, 24, 21 }},
145 {
"InputLayer2", { 4, 1, 6, 7 }}},
146 {{
"OutputLayer", { 0, 5, 3, 3 }}});
151 RunTest<4, armnn::DataType::Float32>(
153 {{
"InputLayer1", { 100, 40, 226, 9 }},
154 {
"InputLayer2", { 5, 8, 1, 3 }}},
155 {{
"OutputLayer", { 20, 5, 226, 3 }}});
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")