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

Function BatchToSpaceNDFp32Test

delegate/test/BatchSpaceTest.cpp:18–37  ·  view source on GitHub ↗

BatchToSpaceND Operator

Source from the content-addressed store, hash-verified

16
17// BatchToSpaceND Operator
18void 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
39void BatchToSpaceNDFp32BatchOneTest()
40{

Callers 1

BatchSpaceTest.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected