BatchToSpaceND Operator
| 16 | |
| 17 | // BatchToSpaceND Operator |
| 18 | void BatchToSpaceNDFp32Test() |
| 19 | { |
| 20 | std::vector<int32_t> inputShape { 4, 1, 1, 1 }; |
| 21 | std::vector<int32_t> expectedOutputShape { 1, 2, 2, 1 }; |
| 22 | |
| 23 | std::vector<float> inputValues { 1.0f, 2.0f, 3.0f, 4.0f }; |
| 24 | std::vector<float> expectedOutputValues { 1.0f, 2.0f, 3.0f, 4.0f }; |
| 25 | |
| 26 | std::vector<unsigned int> blockShape({2, 2}); |
| 27 | std::vector<std::pair<unsigned int, unsigned int>> crops = {{0, 0}, {0, 0}}; |
| 28 | |
| 29 | BatchSpaceTest<float>(tflite::BuiltinOperator_BATCH_TO_SPACE_ND, |
| 30 | ::tflite::TensorType_FLOAT32, |
| 31 | inputShape, |
| 32 | expectedOutputShape, |
| 33 | inputValues, |
| 34 | blockShape, |
| 35 | crops, |
| 36 | expectedOutputValues); |
| 37 | } |
| 38 | |
| 39 | void BatchToSpaceNDFp32BatchOneTest() |
| 40 | { |