15 explicit InstanceNormalizationFixture(
const std::string &inputShape,
16 const std::string &outputShape,
17 const std::string &gamma,
18 const std::string &beta,
19 const std::string &epsilon,
20 const std::string &dataType,
21 const std::string &dataLayout)
29 layer_type: "InputLayer", 35 layerName: "InputLayer", 39 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 44 dimensions: )" + inputShape + R"(, 45 dataType: ")" + dataType + R"(", 46 quantizationScale: 0.5, 55 layer_type: "InstanceNormalizationLayer", 59 layerName: "InstanceNormalizationLayer", 60 layerType: "InstanceNormalization", 63 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 68 dimensions: )" + outputShape + R"(, 69 dataType: ")" + dataType + R"(" 74 dataLayout: ")" + dataLayout + R"(", 75 gamma: ")" + gamma + R"(", 76 beta: ")" + beta + R"(", 77 eps: )" + epsilon + R"( 82 layer_type: "OutputLayer", 88 layerName: "OutputLayer", 92 connection: {sourceLayerIndex:1, outputSlotIndex:0 }, 97 dimensions: )" + outputShape + R"(, 98 dataType: ")" + dataType + R"(" 110 struct InstanceNormalizationFloat32Fixture : InstanceNormalizationFixture
112 InstanceNormalizationFloat32Fixture():InstanceNormalizationFixture(
"[ 2, 2, 2, 2 ]",
121 TEST_CASE_FIXTURE(InstanceNormalizationFloat32Fixture,
"InstanceNormalizationFloat32")
123 RunTest<4, armnn::DataType::Float32>(
139 0.0000000f, -1.1470304f,
140 0.0000000f, -0.2294061f,
142 0.0000000f, -0.2294061f,
143 0.0000000f, 1.6058424f,
145 0.9999501f, -0.7337929f,
146 -0.9999501f, 0.5241377f,
148 -0.9999501f, -1.1531031f,
149 0.9999501f, 1.3627582f
void SetupSingleInputSingleOutput(const std::string &inputName, const std::string &outputName)
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")
TEST_SUITE("Deserializer_InstanceNormalization")