[IE TESTS] Fix abs for FP16 comparation (#17414)
* [IE TESTS] Fix abs for FP16 comparation * Update data_utils.hpp * Skipps failed tests
This commit is contained in:
parent
dab190b988
commit
4303d10e26
@ -114,6 +114,9 @@ std::vector<std::string> disabledTestPatterns() {
|
||||
R"(.*OVInferRequestCheckTensorPrecision.*get(Input|Output|Inputs|Outputs)From.*FunctionWith(Single|Several).*type=(u4|u1|i4|boolean).*)",
|
||||
// AUTO does not support import / export
|
||||
R"(.*smoke_Auto_BehaviorTests/OVCompiledGraphImportExportTest.*(mportExport|readFromV10IR).*/targetDevice=(AUTO).*)",
|
||||
// CVS-110345
|
||||
R"(.*ReferenceInterpolate_v11.*data_type=f16.*)",
|
||||
R"(.*LSTMSequence_With_Hardcoded_Refs.*ReferenceLSTMSequenceTest.*iType=f16.*)",
|
||||
};
|
||||
|
||||
#ifdef _WIN32
|
||||
|
@ -504,7 +504,7 @@ inline ngraph::bfloat16 ie_abs(const ngraph::bfloat16 &val) {
|
||||
}
|
||||
|
||||
inline ngraph::float16 ie_abs(const ngraph::float16 &val) {
|
||||
return ngraph::float16::from_bits(val.to_bits() ^ 0x8000);
|
||||
return ngraph::float16::from_bits(val.to_bits() & 0x7FFF);
|
||||
}
|
||||
|
||||
} // namespace CommonTestUtils
|
||||
|
Loading…
Reference in New Issue
Block a user