15 explicit NormalizationFixture(
const std::string &inputShape,
16 const std::string & outputShape,
17 const std::string &dataType,
18 const std::string &normAlgorithmChannel,
19 const std::string &normAlgorithmMethod,
20 const std::string &dataLayout)
27 layer_type: "InputLayer", 33 layerName: "InputLayer", 37 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 42 dimensions: )" + inputShape + R"(, 43 dataType: )" + dataType + R"(, 44 quantizationScale: 0.5, 53 layer_type: "NormalizationLayer", 57 layerName: "NormalizationLayer", 58 layerType: "Normalization", 61 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 66 dimensions: )" + outputShape + R"(, 67 dataType: )" + dataType + R"( 72 normChannelType: )" + normAlgorithmChannel + R"(, 73 normMethodType: )" + normAlgorithmMethod + R"(, 78 dataLayout: )" + dataLayout + R"( 83 layer_type: "OutputLayer", 89 layerName: "OutputLayer", 93 connection: {sourceLayerIndex:1, outputSlotIndex:0 }, 98 dimensions: )" + outputShape + R"(, 99 dataType: )" + dataType + R"( 111 struct FloatNhwcLocalBrightnessAcrossNormalizationFixture : NormalizationFixture
113 FloatNhwcLocalBrightnessAcrossNormalizationFixture() : NormalizationFixture(
"[ 2, 2, 2, 1 ]",
"[ 2, 2, 2, 1 ]",
114 "Float32",
"0",
"0",
"NHWC") {}
118 TEST_CASE_FIXTURE(FloatNhwcLocalBrightnessAcrossNormalizationFixture,
"Float32NormalizationNhwcDataLayout")
120 RunTest<4, armnn::DataType::Float32>(0, { 1.0f, 2.0f, 3.0f, 4.0f,
121 5.0f, 6.0f, 7.0f, 8.0f },
122 { 0.5f, 0.400000006f, 0.300000012f, 0.235294119f,
123 0.192307696f, 0.16216217f, 0.140000001f, 0.123076923f });
126 struct FloatNchwLocalBrightnessWithinNormalizationFixture : NormalizationFixture
128 FloatNchwLocalBrightnessWithinNormalizationFixture() : NormalizationFixture(
"[ 2, 1, 2, 2 ]",
"[ 2, 1, 2, 2 ]",
129 "Float32",
"1",
"0",
"NCHW") {}
132 TEST_CASE_FIXTURE(FloatNchwLocalBrightnessWithinNormalizationFixture,
"Float32NormalizationNchwDataLayout")
134 RunTest<4, armnn::DataType::Float32>(0, { 1.0f, 2.0f, 3.0f, 4.0f,
135 5.0f, 6.0f, 7.0f, 8.0f },
136 { 0.0322581f, 0.0645161f, 0.0967742f, 0.1290323f,
137 0.0285714f, 0.0342857f, 0.04f, 0.0457143f });
void SetupSingleInputSingleOutput(const std::string &inputName, const std::string &outputName)
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")