MCPcopy Create free account
hub / github.com/ARM-software/armnn / MeanUint8KeepDimsTest

Function MeanUint8KeepDimsTest

delegate/test/ControlTest.cpp:128–148  ·  view source on GitHub ↗

MEAN Operator

Source from the content-addressed store, hash-verified

126
127// MEAN Operator
128void MeanUint8KeepDimsTest()
129{
130 std::vector<int32_t> input0Shape { 1, 3 };
131 std::vector<int32_t> input1Shape { 1 };
132 std::vector<int32_t> expectedOutputShape { 1, 1 };
133
134 std::vector<uint8_t> input0Values { 5, 10, 15 }; // Inputs
135 std::vector<int32_t> input1Values { 1 }; // Axis
136
137 std::vector<uint8_t> expectedOutputValues { 10 };
138
139 MeanTest<uint8_t>(tflite::BuiltinOperator_MEAN,
140 ::tflite::TensorType_UINT8,
141 input0Shape,
142 input1Shape,
143 expectedOutputShape,
144 input0Values,
145 input1Values,
146 expectedOutputValues,
147 true);
148}
149
150void MeanUint8Test()
151{

Callers 1

ControlTest.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected