Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/framework/
Dtensor_testutil_test.cc192 EXPECT_TRUE(Helper<T>::IsClose(Eigen::NumTraits<T>::infinity(), in TestEdgeCasesClose()
195 EXPECT_TRUE(Helper<T>::IsClose( in TestEdgeCasesClose()
198 EXPECT_TRUE(Helper<T>::IsClose( in TestEdgeCasesClose()
201 EXPECT_FALSE(Helper<T>::IsClose(Eigen::NumTraits<T>::quiet_NaN(), in TestEdgeCasesClose()
204 EXPECT_FALSE(Helper<T>::IsClose( in TestEdgeCasesClose()
213 Helper<T>::IsClose(HALF(1.0f), HALF(1.1f), HALF(0.1f), HALF(0.1f))); in TEST()
215 Helper<T>::IsClose(HALF(1.0f), HALF(1.0f), HALF(0.0f), HALF(0.0f))); in TEST()
217 Helper<T>::IsClose(HALF(1.0f), HALF(1.1f), HALF(0.0f), HALF(0.0f))); in TEST()
232 Helper<T>::IsClose(HALF(1.234f), HALF(1.234f), kDefaultTol, kDefaultTol)); in TEST()
234 Helper<T>::IsClose(HALF(1.234f), HALF(1.233f), kDefaultTol, kDefaultTol)); in TEST()
[all …]
Dtensor_testutil.h217 static bool IsClose(const T& x, const T& y, const T& atol, const T& rtol) {
226 static bool IsClose(const std::complex<T>& x, const std::complex<T>& y,
228 return Helper<T>::IsClose(x.real(), y.real(), atol, rtol) &&
229 Helper<T>::IsClose(x.imag(), y.imag(), atol, rtol);
Dtensor_testutil.cc47 internal::Helper<T>::IsClose(Tx[i], Ty[i], typed_atol, typed_rtol)) in ExpectClose()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dexhaustive_op_test.cc316 bool IsClose(T expected, T actual) { in IsClose() function in xla::__anond3cbcf350111::ExhaustiveOpTest
356 if (IsClose(expected, actual)) { in ExpectNear()
387 if (IsClose(sign_preserving_ftz_expected, actual) || in ExpectNear()
389 IsClose(sign_nonpreserving_ftz_expected, actual))) { in ExpectNear()
/external/tensorflow/tensorflow/compiler/tests/
Drandomized_tests.cc716 bool IsClose(const T& x, const T& y, double atol, double rtol) { in IsClose() function
723 bool IsClose<complex64>(const complex64& x, const complex64& y, double atol, in IsClose() function
754 if (!IsClose(Tx(i), Ty(i), atol, rtol)) { in TensorsAreCloseImpl()