[IE TESTS] Fix issue with assert (Failed tests are reported as ) (#4794)
This commit is contained in:
parent
9df8502bc8
commit
72c66b1a91
@ -180,12 +180,13 @@ public:
|
||||
|
||||
const auto max = std::max(CommonTestUtils::ie_abs(res), CommonTestUtils::ie_abs(ref));
|
||||
float diff = static_cast<float>(absoluteDifference) / static_cast<float>(max);
|
||||
ASSERT_TRUE(max != 0 && (diff <= static_cast<float>(threshold)))
|
||||
<< "Relative comparison of values expected: " << ref << " and actual: " << res
|
||||
if (max == 0 || (diff > static_cast<float>(threshold))) {
|
||||
THROW_IE_EXCEPTION << "Relative comparison of values expected: " << ref << " and actual: " << res
|
||||
<< " at index " << i << " with threshold " << threshold
|
||||
<< " failed";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected:
|
||||
LayerTestsCommon();
|
||||
|
Loading…
Reference in New Issue
Block a user