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

Function ReshapeReduceDimTest

delegate/test/ReshapeTest.cpp:71–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void ReshapeReduceDimTest(bool useOption = true, const std::vector<armnn::BackendId>& backends = {})
72{
73 // Set input data
74 std::vector<int32_t> inputShape { 1, 3, 4, 1 };
75 std::vector<int32_t> outputShape { 1, 4, 3 };
76 std::vector<int32_t> targetShape { 1, 4, 3 };
77
78 std::vector<float> inputValues = { -5.0f, 8.0f, -10.0f, 7.0f,
79 8.0f, 12.0f, -15.0f, 2.0f,
80 3.0f, -4.0f, -1.0f, -11.0f };
81
82 std::vector<float> expectedOutputValues = { -5.0f, 8.0f, -10.0f, 7.0f,
83 8.0f, 12.0f, -15.0f, 2.0f,
84 3.0f, -4.0f, -1.0f, -11.0f };
85
86 RedefineTest<float>(tflite::BuiltinOperator_RESHAPE,
87 ::tflite::TensorType_FLOAT32,
88 inputShape,
89 outputShape,
90 inputValues,
91 expectedOutputValues,
92 targetShape,
93 useOption,
94 backends);
95}
96
97void ReshapeFlattenTest(bool useOption = true, const std::vector<armnn::BackendId>& backends = {})
98{

Callers 1

ReshapeTest.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected