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

Function CompareData

delegate/test/TestUtils.cpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9{
10
11void CompareData(bool tensor1[], bool tensor2[], size_t tensorSize)
12{
13 auto compareBool = [](auto a, auto b) {return (((a == 0) && (b == 0)) || ((a != 0) && (b != 0)));};
14 for (size_t i = 0; i < tensorSize; i++)
15 {
16 CHECK(compareBool(tensor1[i], tensor2[i]));
17 }
18}
19
20void CompareData(std::vector<bool>& tensor1, std::vector<bool>& tensor2, size_t tensorSize)
21{

Callers 6

CompareOutputDataFunction · 0.85
Convolution3dTestFunction · 0.85
LogicalBinaryTestFunction · 0.85
ElementwiseUnaryBoolTestFunction · 0.85
ComparisonTestFunction · 0.85

Calls 2

ApproxFunction · 0.85
absFunction · 0.50

Tested by

no test coverage detected