15 explicit Convolution2dFixture(
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: 0.5, 51 layer_type: "Convolution2dLayer", 55 layerName: "Convolution2dLayer", 56 layerType: "Convolution2d", 59 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 64 dimensions: )" + outputShape + R"(, 65 dataType: )" + dataType + R"( 81 dimensions: )" + weightsShape + R"(, 82 dataType: )" + dataType + R"( 87 1082130432, 1084227584, 1086324736, 89 1077936128, 1073741824, 1065353216 96 layer_type: "OutputLayer", 102 layerName: "OutputLayer", 106 connection: {sourceLayerIndex:1, outputSlotIndex:0 }, 111 dimensions: )" + outputShape + R"(, 112 dataType: )" + dataType + R"( 126 explicit Convolution2dFixtureConstantAsInput(
const std::string & inputShape1,
127 const std::string & outputShape,
128 const std::string & weightsShape,
129 const std::string & dataType)
136 layer_type: "InputLayer", 142 layerName: "InputLayer", 146 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 151 dimensions: )" + inputShape1 + R"(, 152 dataType: )" + dataType + R"(, 153 quantizationScale: 0.5, 154 quantizationOffset: 0 162 layer_type: "Convolution2dLayer", 166 layerName: "Convolution2dLayer", 167 layerType: "Convolution2d", 171 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 185 dimensions: )" + outputShape + R"(, 186 dataType: )" + dataType + R"( 204 layer_type: "ConstantLayer", 208 layerName: "Weights", 209 layerType: "Constant", 217 dimensions: )" + weightsShape + R"(, 218 dataType: )" + dataType + R"(, 219 quantizationScale: 0.1, 220 dimensionSpecificity: [ 232 dimensions: )" + weightsShape + R"(, 233 dataType: )" + dataType + R"(, 234 quantizationScale: 0.1, 235 dimensionSpecificity: [ 242 data_type: "IntData", 245 1082130432, 1084227584, 1086324736, 247 1077936128, 1073741824, 1065353216 254 layer_type: "OutputLayer", 260 layerName: "OutputLayer", 265 "sourceLayerIndex": 1, 272 dimensions: )" + outputShape + R"(, 273 dataType: )" + dataType + R"( 280 "constantTensorsAsInputs": 1, 281 "weightsLayoutScheme": 1 289 struct SimpleConvolution2dFixture : Convolution2dFixture
291 SimpleConvolution2dFixture() : Convolution2dFixture(
"[ 1, 5, 5, 1 ]",
299 RunTest<4, armnn::DataType::Float32>(
301 {{
"InputLayer", {1, 5, 2, 3, 5, 8, 7, 3, 6, 3, 3, 3, 9, 1, 9, 4, 1, 8, 1, 3, 6, 8, 1, 9, 2}}},
302 {{
"OutputLayer", {23, 33, 24, 91, 99, 48, 26, 50, 19}}});
306 struct SimpleConvolution2dFixtureConstantAsInput : Convolution2dFixtureConstantAsInput
308 SimpleConvolution2dFixtureConstantAsInput() : Convolution2dFixtureConstantAsInput(
"[ 1, 5, 5, 1 ]",
314 TEST_CASE_FIXTURE(SimpleConvolution2dFixtureConstantAsInput,
"Convolution2dFloat32ConstAsInput")
316 RunTest<4, armnn::DataType::Float32>(
318 {{
"InputLayer", {1, 5, 2, 3, 5, 8, 7, 3, 6, 3, 3, 3, 9, 1, 9, 4, 1, 8, 1, 3, 6, 8, 1, 9, 2}}},
319 {{
"OutputLayer", {23, 33, 24, 91, 99, 48, 26, 50, 19}}});
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")