/external/tensorflow/tensorflow/cc/framework/ |
H A D | gradient_checker_test.cc | 44 float max_error; local 46 scope, {x}, {shape}, {y}, {shape}, &max_error))); 47 EXPECT_LT(max_error, 1e-4); 55 double max_error; local 57 scope, {x}, {shape}, {y}, {shape}, &max_error))); 58 EXPECT_LT(max_error, 1e-10); 66 float max_error; local 68 scope, {x}, {shape}, {y}, {shape}, &max_error))); 69 EXPECT_LT(max_error, 1e-4); 77 double max_error; local 89 float max_error; local 101 float max_error; local 117 double max_error; local 132 double max_error; local 147 double max_error; local 163 double max_error; local [all...] |
H A D | gradient_checker.h | 25 /// Returns in 'max_error' the maximum element-wise error for dy/dx between the 53 JAC_T* max_error); 59 const TensorShape& y_shape, JAC_T* max_error);
|
H A D | gradient_checker.cc | 330 JAC_T* max_error) { 349 *max_error = 0.0; 354 *max_error = std::max(*max_error, std::fabs(jac_t(r, c) - jac_n(r, c))); 368 JAC_T* max_error) { 388 scope, xs, x_shapes, ys, y_shapes, &x_datas, max_error); 394 const TensorShape& y_shape, JAC_T* max_error) { 399 scope, {x}, {x_datas[0].shape()}, {y}, {y_shape}, &x_datas, max_error); 406 const std::vector<TensorShape>& y_shapes, JAC_T* max_error); \ 409 const Output& y, const TensorShape& y_shape, JAC_T* max_error); 325 ComputeGradientErrorInternal(const Scope& scope, const OutputList& xs, const std::vector<TensorShape>& x_shapes, const OutputList& ys, const std::vector<TensorShape>& y_shapes, std::vector<Tensor>* x_datas, JAC_T* max_error) argument 364 ComputeGradientError(const Scope& scope, const OutputList& xs, const std::vector<TensorShape>& x_shapes, const OutputList& ys, const std::vector<TensorShape>& y_shapes, JAC_T* max_error) argument 392 ComputeGradientError(const Scope& scope, const Output& x, const Tensor& x_init_value, const Output& y, const TensorShape& y_shape, JAC_T* max_error) argument [all...] |
/external/tensorflow/tensorflow/cc/gradients/ |
H A D | data_flow_grad_test.cc | 40 float max_error; local 42 scope_, xs, x_shapes, ys, y_shapes, &max_error))); 43 EXPECT_LT(max_error, 1e-4);
|
H A D | nn_grad_test.cc | 48 float max_error; local 50 scope_, {x}, {x_shape}, {y}, {y_shape}, &max_error))); 51 EXPECT_LT(max_error, 1e-3); 56 float max_error; local 58 scope_, x, x_init_value, y, y_shape, &max_error))); 59 EXPECT_LT(max_error, 1e-3); 65 float max_error; local 67 scope_, xs, x_shapes, ys, y_shapes, &max_error))); 68 EXPECT_LT(max_error, 1e-3);
|
H A D | math_grad_test.cc | 203 float max_error; local 205 shape, &max_error))); 206 EXPECT_LT(max_error, 1e-3f); 596 float max_error; local 598 root_, {x, y}, {x_shape, y_shape}, {z}, {z_shape}, &max_error))); 599 EXPECT_LT(max_error, 1e-3); 718 float max_error; local 720 scope_, xs, x_shapes, ys, y_shapes, &max_error))); 721 EXPECT_LT(max_error, 1e-3); 727 float max_error; local [all...] |
H A D | array_grad_test.cc | 38 float max_error; local 40 scope_, {x}, {x_shape}, {y}, {y_shape}, &max_error))); 41 EXPECT_LT(max_error, 1e-3); 47 float max_error; local 49 scope_, xs, x_shapes, ys, y_shapes, &max_error))); 50 EXPECT_LT(max_error, 1e-3);
|
/external/ImageMagick/Magick++/tests/ |
H A D | color.cpp | 117 double max_error = resolution + MagickEpsilon; local 122 if ( gray.shade() < value - max_error || gray.shade() > value + max_error )
|
/external/libpng/contrib/tools/ |
H A D | makesRGB.c | 79 double max_error = 0; local 303 max_error = .4999; 315 if (err > (max_error+.001) || err < (min_error-.001)) 324 if (err > max_error) 325 max_error = err; 385 min_error, max_error, error_count, (100.*error_count)/max_input);
|
/external/tensorflow/tensorflow/python/ops/ |
H A D | math_grad_test.py | 66 def _testGrad(self, shape, dtype=None, max_error=None, bias=None, sigma=None): 83 self.assertLess(error, max_error) 88 [3, 3], dtype=dtypes.float32, max_error=2e-5, bias=0.1, sigma=1.0) 90 [3, 3], dtype=dtypes.complex64, max_error=2e-5, bias=0.1, sigma=1.0) 94 [3, 3], dtype=dtypes.float32, max_error=100.0, bias=0.0, sigma=0.1) 96 [3, 3], dtype=dtypes.complex64, max_error=100.0, bias=0.0, sigma=0.1)
|
/external/libvpx/libvpx/test/ |
H A D | vp8_fdct4x4_test.cc | 154 int max_error = 0; local 174 if (max_error < error) max_error = error; 179 EXPECT_GE(1, max_error)
|
H A D | dct32x32_test.cc | 106 uint32_t max_error = 0; local 152 if (max_error < error) max_error = error; 158 max_error /= 2; 162 EXPECT_GE(1u << 2 * (bit_depth_ - 8), max_error)
|
H A D | fdct8x8_test.cc | 214 int max_error = 0; local 272 if (max_error < error) max_error = error; 277 EXPECT_GE(1 << 2 * (bit_depth_ - 8), max_error) 288 int max_error = 0; local 355 if (max_error < error) max_error = error; 362 EXPECT_GE(1 << 2 * (bit_depth_ - 8), max_error)
|
H A D | dct16x16_test.cc | 321 uint32_t max_error = 0; local 368 if (max_error < error) max_error = error; 373 EXPECT_GE(1u << 2 * (bit_depth_ - 8), max_error)
|
H A D | dct_test.cc | 152 uint32_t max_error = 0; local 207 if (max_error < error) max_error = error; 213 EXPECT_GE(static_cast<uint32_t>(limit), max_error)
|
/external/autotest/client/site_tests/kernel_Ktime/ |
H A D | kernel_Ktime.py | 102 RTC ticked in the range of [ktime - max_error, ktime + max_error] 185 max_error = start_error + current_error 186 drift_threshold = elapsed_rtc * self.ALLOWABLE_DRIFT + max_error
|
/external/webrtc/talk/media/base/ |
H A D | videoframe_unittest.h | 446 int max_error) { 451 if (abs(static_cast<int>(r1[x] - r2[x])) > max_error) { 477 int max_error) { 485 static_cast<uint32_t>(height), max_error) && 488 static_cast<uint32_t>((height + 1) / 2), max_error) && 491 static_cast<uint32_t>((height + 1) / 2), max_error); 496 int max_error) { 504 max_error); 509 int hcrop, int vcrop, int max_error) { 526 max_error); 439 IsPlaneEqual(const std::string& name, const uint8_t* plane1, uint32_t pitch1, const uint8_t* plane2, uint32_t pitch2, uint32_t width, uint32_t height, int max_error) argument 465 IsEqual(const cricket::VideoFrame& frame, size_t width, size_t height, size_t pixel_width, size_t pixel_height, int64_t time_stamp, const uint8_t* y, uint32_t ypitch, const uint8_t* u, uint32_t upitch, const uint8_t* v, uint32_t vpitch, int max_error) argument 494 IsEqual(const cricket::VideoFrame& frame1, const cricket::VideoFrame& frame2, int max_error) argument 507 IsEqualWithCrop(const cricket::VideoFrame& frame1, const cricket::VideoFrame& frame2, int hcrop, int vcrop, int max_error) argument [all...] |
/external/python/cpython3/Lib/test/ |
H A D | test_tracemalloc.py | 186 max_error = 2048 196 self.assertLessEqual(size - obj_size, max_error) 197 self.assertLessEqual(peak_size - size, max_error) 203 self.assertGreaterEqual(size - size2, obj_size - max_error)
|
/external/libpng/contrib/libtests/ |
H A D | tarith.c | 78 double max_error=2; /* As a percentage error-in-last-digit/.5 */ local 96 max_error = atof(*++argv); 203 double percent = (precision >= DBL_DIG) ? max_error_abs : max_error;
|
/external/autotest/server/cros/bluetooth/ |
H A D | bluetooth_adapter_tests.py | 1271 def within_tolerance(expected, actual, max_error=0.1): 1276 @param max_error: The maximum percent error acceptable. 1279 max_error. 1281 return abs(expected - actual) / abs(expected) <= max_error
|