Go to the source code of this file.
◆ TEST_SUITE()
TEST_SUITE |
( |
"DeserializeParser_FullyConnected" |
| ) |
|
Definition at line 11 of file DeserializeFullyConnected.cpp.
References ParserFlatbuffersSerializeFixture::Setup(), and TEST_CASE_FIXTURE().
15 explicit FullyConnectedFixture(
const std::string & inputShape1,
16 const std::string & outputShape,
17 const std::string & weightsShape,
18 const std::string & dataType)
25 layer_type: "InputLayer", 31 layerName: "InputLayer", 35 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 40 dimensions: )" + inputShape1 + R"(, 41 dataType: )" + dataType + R"(, 42 quantizationScale: 1.0, 51 layer_type: "FullyConnectedLayer", 55 layerName: "FullyConnectedLayer", 56 layerType: "FullyConnected", 59 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 64 dimensions: )" + outputShape + R"(, 65 dataType: )" + dataType + R"(, 66 quantizationScale: 2.0, 73 transposeWeightsMatrix: true 77 dimensions: )" + weightsShape + R"(, 78 dataType: )" + dataType + R"(, 79 quantizationScale: 1.0, 92 layer_type: "OutputLayer", 98 layerName: "OutputLayer", 102 connection: {sourceLayerIndex:1, outputSlotIndex:0 }, 107 dimensions: )" + outputShape + R"(, 108 dataType: )" + dataType + R"( 123 explicit FullyConnectedFixtureConstantAsInput()
129 "layer_type": "InputLayer", 134 "layerName": "InputLayer", 135 "layerType": "Input", 149 "dataType": "QAsymmU8", 150 "quantizationScale": 1.0, 151 "quantizationOffset": 0, 152 "quantizationDim": 0, 154 "dimensionSpecificity": [ 169 "layer_type": "FullyConnectedLayer", 173 "layerName": "FullyConnectedLayer", 174 "layerType": "FullyConnected", 179 "sourceLayerIndex": 0, 186 "sourceLayerIndex": 2, 199 "dataType": "QAsymmU8", 200 "quantizationScale": 2.0, 201 "quantizationOffset": 0, 202 "quantizationDim": 0, 204 "dimensionSpecificity": [ 213 "biasEnabled": false, 214 "transposeWeightsMatrix": true, 215 "constantWeights": true 220 "layer_type": "ConstantLayer", 225 "layerType": "Constant", 237 "dataType": "QAsymmU8", 238 "quantizationScale": 1.0, 239 "quantizationOffset": 0, 240 "quantizationDim": 0, 242 "dimensionSpecificity": [ 257 "dataType": "QAsymmU8", 258 "quantizationScale": 1.0, 259 "quantizationOffset": 0, 260 "quantizationDim": 0, 262 "dimensionSpecificity": [ 267 "data_type": "ByteData", 280 "layer_type": "OutputLayer", 285 "layerName": "OutputLayer", 286 "layerType": "Output", 291 "sourceLayerIndex": 1, 312 "bindingIdsScheme": 1, 313 "weightsLayoutScheme": 1, 314 "constantTensorsAsInputs": 1 322 struct FullyConnectedWithNoBiasFixture : FullyConnectedFixture
324 FullyConnectedWithNoBiasFixture()
325 : FullyConnectedFixture(
"[ 1, 4, 1, 1 ]",
336 RunTest<2, armnn::DataType::QAsymmU8>(
338 {{
"InputLayer", { 10, 20, 30, 40 }}},
339 {{
"OutputLayer", { 400/2 }}});
342 struct FullyConnectedWithNoBiasFixtureConstantAsInput : FullyConnectedFixtureConstantAsInput
344 FullyConnectedWithNoBiasFixtureConstantAsInput()
345 : FullyConnectedFixtureConstantAsInput()
349 TEST_CASE_FIXTURE(FullyConnectedWithNoBiasFixtureConstantAsInput,
"FullyConnectedWithNoBiasConstantAsInput")
351 RunTest<2, armnn::DataType::QAsymmU8>(
353 {{
"InputLayer", { 10, 20, 30, 40 }}},
354 {{
"OutputLayer", { 400/2 }}});
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")