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

Function ReshapeInt16Test

delegate/test/ReshapeTest.cpp:205–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void ReshapeInt16Test(bool useOption = true, const std::vector<armnn::BackendId>& backends = {})
206{
207 // Set input data
208 std::vector<int32_t> inputShape { 1, 3, 4, 1 };
209 std::vector<int32_t> outputShape { 6, 2 };
210 std::vector<int32_t> targetShape { -1, 2 };
211
212 std::vector<int16_t> inputValues = { -5, 8, -10, 7,
213 8, 12, -15, 2,
214 3, -4, -1, -11 };
215
216 std::vector<int16_t> expectedOutputValues = { -5, 8, -10, 7,
217 8, 12, -15, 2,
218 3, -4, -1, -11 };
219
220 RedefineTest<int16_t>(tflite::BuiltinOperator_RESHAPE,
221 ::tflite::TensorType_INT16,
222 inputShape,
223 outputShape,
224 inputValues,
225 expectedOutputValues,
226 targetShape,
227 useOption,
228 backends,
229 2.5f,
230 0);
231}
232
233TEST_SUITE("ReshapeTests")
234{

Callers 1

ReshapeTest.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected