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

Function CompareOutput

src/profiling/test/ProfilingTestUtils.cpp:1492–1520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1490}
1491
1492bool CompareOutput(std::vector<std::string> output, std::vector<std::string> expectedOutput)
1493{
1494 if (output.size() != expectedOutput.size())
1495 {
1496 std::cerr << "output has [" << output.size() << "] lines, expected was ["
1497 << expectedOutput.size() << "] lines" << std::endl;
1498 std::cerr << std::endl << "actual" << std::endl << std::endl;
1499 for (auto line : output)
1500 {
1501 std::cerr << line << std::endl;
1502 }
1503 std::cerr << std::endl << "expected" << std::endl << std::endl;
1504 for (auto line : expectedOutput)
1505 {
1506 std::cerr << line << std::endl;
1507 }
1508 return false;
1509 }
1510 bool bRet = true;
1511 for (unsigned long i = 0; i < output.size(); ++i)
1512 {
1513 if (output[i] != expectedOutput[i])
1514 {
1515 bRet = false;
1516 std::cerr << i << ": actual [" << output[i] << "] expected [" << expectedOutput[i] << "]" << std::endl;
1517 }
1518 }
1519 return bRet;
1520}

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected