Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/framework/
Dtensor_testutil.h104 void ExpectTensorNear(const Tensor& x, const Tensor& y, const T& abs_err);
195 static bool Near(const T& a, const T& b, const double abs_err) {
198 (static_cast<double>(Eigen::numext::abs(a - b)) <= abs_err);
201 static void Near(const Tensor& x, const Tensor& y, const double abs_err) {
208 EXPECT_TRUE(Near(a[i], b[i], abs_err))
241 void ExpectTensorNear(const Tensor& x, const Tensor& y, const double abs_err) {
244 ASSERT_GE(abs_err, 0.0) << "abs_error is negative" << abs_err;
245 internal::Expector<T>::Near(x, y, abs_err);
/external/webrtc/webrtc/modules/audio_processing/agc/
Dhistogram_unittest.cc80 double abs_err = std::min(audio_content, io.audio_content) * in RunTest() local
83 ASSERT_NEAR(audio_content, io.audio_content, abs_err); in RunTest()
85 abs_err = std::min(fabs(current_loudness), fabs(io.loudness)) * in RunTest()
87 ASSERT_NEAR(current_loudness, io.loudness, abs_err); in RunTest()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dexhaustive_op_test.cc226 void SetDefaultErrSpec(float abs_err, float rel_err) { in SetDefaultErrSpec() argument
228 abs_err_ = abs_err; in SetDefaultErrSpec()
319 float abs_err = std::abs(expected_f32 - actual_f32); in IsClose() local
320 float rel_err = abs_err / std::abs(expected_f32); in IsClose()
325 return abs_err < *abs_err_ || rel_err < *rel_err_ || in IsClose()
/external/python/cpython2/Lib/test/
Dtest_cmath.py64 def rAssertAlmostEqual(self, a, b, rel_err = 2e-15, abs_err = 5e-323, argument
109 if absolute_error <= max(abs_err, rel_err * abs(a)):
349 abs_err=real_abs_err,
Dtest_math.py63 def acc_check(expected, got, rel_err=2e-15, abs_err = 5e-323): argument
76 permitted_error = max(abs_err, rel_err * abs(expected))
998 abs_err = 5e-15)
/external/python/cpython3/Lib/test/
Dtest_cmath.py101 def rAssertAlmostEqual(self, a, b, rel_err = 2e-15, abs_err = 5e-323, argument
146 if absolute_error <= max(abs_err, rel_err * abs(a)):
417 abs_err=real_abs_err,
Dtest_statistics.py71 abs_err = abs(actual - expected)
72 rel_err = abs_err/base if base else float('inf')
73 return (abs_err, rel_err)
264 abs_err, rel_err = _calc_errors(first, second)
265 return template % (first, second, tol, rel, abs_err, rel_err)
631 abs_err, rel_err = _calc_errors(first, second)
635 'absolute error = %r' % abs_err,
/external/webrtc/webrtc/p2p/base/
Dpseudotcp.cc720 uint32_t abs_err = unsigned_rtt > m_rx_srtt in process() local
723 m_rx_rttvar = (3 * m_rx_rttvar + abs_err) / 4; in process()