| 203 | } |
| 204 | |
| 205 | void 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 | |
| 233 | TEST_SUITE("ReshapeTests") |
| 234 | { |