IVGCVSW-1822: Fix CaffeYolo-Armnn error reporting
authorJames Conroy <james.conroy@arm.com>
Tue, 18 Sep 2018 16:06:44 +0000 (17:06 +0100)
committerMatthew Bentham <matthew.bentham@arm.com>
Wed, 10 Oct 2018 15:16:56 +0000 (16:16 +0100)
* Changed message to 'Prediction for test case <N>
  is incorrect: Expected (<X>) but predicted (<Y>)'

Change-Id: Ie54b70683bf5bb26de2f2a6bcf4a162c99ba5474

tests/YoloInferenceTest.hpp

index 6b40d51..5e2a482 100644 (file)
@@ -146,8 +146,8 @@ public:
             if (detectedObject.m_Class != expectedDetection.m_Class)
             {
                 BOOST_LOG_TRIVIAL(error) << "Prediction for test case " << this->GetTestCaseId() <<
-                    " (" << detectedObject.m_Class << ")" <<
-                    " is incorrect (should be " << expectedDetection.m_Class << ")";
+                    " is incorrect: Expected (" << expectedDetection.m_Class << ")" <<
+                    " but predicted (" << detectedObject.m_Class << ")";
                 return TestCaseResult::Failed;
             }