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

Function BatchToSpaceNDUint8Test

delegate/test/BatchSpaceTest.cpp:60–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void BatchToSpaceNDUint8Test()
61{
62 std::vector<int32_t> inputShape { 4, 1, 1, 3 };
63 std::vector<int32_t> expectedOutputShape { 1, 2, 2, 3 };
64
65 std::vector<uint8_t> inputValues { 1, 2, 3, 4, 5, 6, 7 };
66 std::vector<uint8_t> expectedOutputValues { 1, 2, 3, 4, 5, 6, 7 };
67
68 std::vector<unsigned int> blockShape({2, 2});
69 std::vector<std::pair<unsigned int, unsigned int>> crops = {{0, 0}, {0, 0}};
70
71 BatchSpaceTest<uint8_t>(tflite::BuiltinOperator_BATCH_TO_SPACE_ND,
72 ::tflite::TensorType_UINT8,
73 inputShape,
74 expectedOutputShape,
75 inputValues,
76 blockShape,
77 crops,
78 expectedOutputValues);
79}
80
81// SpaceToBatchND Operator
82void SpaceToBatchNDFp32Test()

Callers 1

BatchSpaceTest.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected