Home
last modified time | relevance | path

Searched refs:FpAbsoluteValue (Results 1 – 1 of 1) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/
Dliteral_comparison.cc259 double FpAbsoluteValue(NativeT value) { in FpAbsoluteValue() function
264 double FpAbsoluteValue(bfloat16 value) { in FpAbsoluteValue() function
265 return FpAbsoluteValue<float>(static_cast<float>(value)); in FpAbsoluteValue()
269 double FpAbsoluteValue(half value) { in FpAbsoluteValue() function
270 return FpAbsoluteValue<float>(static_cast<float>(value)); in FpAbsoluteValue()
360 const double abs_value = FpAbsoluteValue(value); in UpdateAbsValueBucket()
414 abs_error = FpAbsoluteValue(actual_finite - expected); in CompareValues()
419 rel_error = abs_error / FpAbsoluteValue(expected); in CompareValues()
430 abs_error = FpAbsoluteValue(actual - expected); in CompareValues()
435 rel_error = abs_error / FpAbsoluteValue(expected); in CompareValues()