7 #include "../Deserializer.hpp" 15 explicit ReduceSumFixture(
const std::string& inputShape,
16 const std::string& outputShape,
17 const std::string& axis,
18 const std::string& dataType)
26 layer_type: "InputLayer", 32 layerName: "InputLayer", 36 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 41 dimensions: )" + inputShape + R"(, 42 dataType: )" + dataType + R"( 50 layer_type: "ReduceLayer", 54 layerName: "ReduceSumLayer", 58 connection: {sourceLayerIndex:0, outputSlotIndex:0 }, 63 dimensions: )" + outputShape + R"(, 64 dataType: )" + dataType + R"( 69 axis: )" + axis + R"(, 76 layer_type: "OutputLayer", 82 layerName: "OutputLayer", 86 connection: {sourceLayerIndex:1, outputSlotIndex:0 }, 91 dimensions: )" + outputShape + R"(, 92 dataType: )" + dataType + R"( 106 struct SimpleReduceSumFixture : ReduceSumFixture
108 SimpleReduceSumFixture()
109 : ReduceSumFixture(
"[ 1, 1, 3, 2 ]",
118 RunTest<4, armnn::DataType::Float32>(
120 {{
"InputLayer", { 1.0f, 1.0f, 2.0f, 2.0f, 3.0f, 3.0f }}},
121 {{
"OutputLayer", { 6.0f, 6.0f }}});
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")
TEST_SUITE("Deserializer_ReduceSum")