/external/tensorflow/tensorflow/core/framework/ |
tensor_testutil.cc | 23 void ExpectClose(const Tensor& x, const Tensor& y, double atol, double rtol) { 40 (rtol < 0) ? kDefaultTol : static_cast<RealType>(rtol); 53 void ExpectClose(const Tensor& x, const Tensor& y, double atol, double rtol) { 57 ExpectClose<Eigen::half>(x, y, atol, rtol); 60 ExpectClose<float>(x, y, atol, rtol); 63 ExpectClose<double>(x, y, atol, rtol); 66 ExpectClose<complex64>(x, y, atol, rtol); 69 ExpectClose<complex128>(x, y, atol, rtol);
|
/external/tensorflow/tensorflow/contrib/distributions/python/ops/ |
test_util.py | 45 rtol=1e-2, atol=0.): 73 rtol: Python `float`-type indicating the admissible relative error between 102 rtol=rtol, atol=atol) 107 rtol=1e-2, atol=0.): 124 rtol: Python `float`-type indicating the admissible relative error between 151 self.assertAllClose(mean_, sample_mean_, rtol=rtol, atol=atol) 152 self.assertAllClose(variance_, sample_variance_, rtol=rtol, atol=atol [all...] |
deterministic.py | 58 rtol=None, 65 The `atol` and `rtol` parameters allow for some slack in `pmf`, `cdf` 70 = 1, if Abs(x - loc) <= atol + rtol * Abs(loc), 80 rtol: Non-negative `Tensor` of same `dtype` as `loc` and broadcastable 99 with ops.name_scope(name, values=[loc, atol, rtol]) as name: 121 self._rtol = self._get_tol(rtol) 123 if rtol is None: 126 self._slack = self.atol + self.rtol * math_ops.abs(self.loc) 151 def rtol(self): member in class:_BaseDeterministic 232 rtol=None [all...] |
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/bijectors/ |
sigmoid_test.py | 40 self.assertAllClose(y, bijector.forward(x).eval(), atol=0., rtol=1e-2) 41 self.assertAllClose(x, bijector.inverse(y).eval(), atol=0., rtol=1e-4) 43 y, event_ndims=0).eval(), atol=0., rtol=1e-6) 45 x, event_ndims=0).eval(), atol=0., rtol=1e-4) 57 Sigmoid(), x, y, event_ndims=0, atol=0., rtol=1e-4)
|
square_test.py | 45 y, event_ndims=0).eval(), atol=0., rtol=1e-7) 50 rtol=1e-7) 55 assert_scalar_congruency(bijector, lower_x=1e-3, upper_x=1.5, rtol=0.05)
|
permute_test.py | 61 self.assertAllClose(expected_y, y_, rtol=1e-6, atol=0) 62 self.assertAllClose(expected_x, x_, rtol=1e-6, atol=0) 63 self.assertAllClose(0., fldj, rtol=1e-6, atol=0) 64 self.assertAllClose(0., ildj, rtol=1e-6, atol=0) 83 bijector, x, y, event_ndims=1, rtol=1e-6, atol=0)
|
power_transform_test.py | 47 rtol=1e-4, 54 bijector, lower_x=-2., upper_x=1.5, rtol=0.05) 61 assert_bijective_and_finite(bijector, x, y, event_ndims=0, rtol=1e-3)
|
reshape_test.py | 69 self.assertAllClose(expected_y, y_, rtol=1e-6, atol=0) 70 self.assertAllClose(expected_x, x_, rtol=1e-6, atol=0) 71 self.assertAllClose(0., fldj_, rtol=1e-6, atol=0) 72 self.assertAllClose(0., ildj_, rtol=1e-6, atol=0) 120 self.assertAllClose(expected_y, y_, rtol=1e-6, atol=0) 121 self.assertAllClose(expected_x, x_, rtol=1e-6, atol=0) 122 self.assertAllClose(expected_y_scalar, y_scalar_, rtol=1e-6, atol=0) 123 self.assertAllClose(expected_x_scalar, x_scalar_, rtol=1e-6, atol=0) 224 self.assertAllClose(expected_y, y_, rtol=1e-6, atol=0) 225 self.assertAllClose(expected_x, x_, rtol=1e-6, atol=0 [all...] |
real_nvp_test.py | 75 self.assertAllClose(forward_x_, forward_inverse_y_, rtol=1e-1, atol=0.) 76 self.assertAllClose(x_, inverse_y_, rtol=1e-1, atol=0.) 77 self.assertAllClose(ildj_, -fldj_, rtol=1e-6, atol=0.) 97 rtol=0.02) 117 rtol=0.02)
|
matrix_inverse_tril_test.py | 60 self.assertAllClose(x_inv_, y_, atol=0., rtol=1e-5) 61 self.assertAllClose(x_, x_back_, atol=0., rtol=1e-5) 78 self.assertAllClose(x_inv_, y_, atol=0., rtol=1e-5) 79 self.assertAllClose(x_, x_back_, atol=0., rtol=1e-5) 96 self.assertAllClose(x_inv_, y_, atol=0., rtol=1e-5) 97 self.assertAllClose(x_, x_back_, atol=0., rtol=1e-5) 120 self.assertAllClose(x_inv_, y_, atol=0., rtol=1e-5) 121 self.assertAllClose(x_, x_back_, atol=0., rtol=1e-5) 122 self.assertAllClose(expected_fldj_, fldj_, atol=0., rtol=1e-3) 123 self.assertAllClose(-expected_fldj_, ildj_, atol=0., rtol=1e-3 [all...] |
sinh_arcsinh_bijector_test.py | 57 rtol=1e-4, 97 assert_scalar_congruency(bijector, lower_x=-2., upper_x=2.0, rtol=0.05) 102 assert_scalar_congruency(bijector, lower_x=-2., upper_x=2.0, rtol=0.05) 109 assert_bijective_and_finite(bijector, x, x, event_ndims=0, rtol=1e-3) 117 bijector, x, x, event_ndims=0, rtol=1e-3) 151 self.assertAllClose(y, bijector.forward(x).eval(), rtol=1e-4, atol=0.) 152 self.assertAllClose(x, bijector.inverse(y).eval(), rtol=1e-4, atol=0.) 170 rtol=1e-4, 175 rtol=1e-4,
|
gumbel_test.py | 51 rtol=1e-4, 57 Gumbel(loc=0.3, scale=20.), lower_x=1., upper_x=100., rtol=0.02) 64 assert_bijective_and_finite(bijector, x, y, event_ndims=0, rtol=1e-3)
|
/external/tensorflow/tensorflow/python/ops/distributions/ |
bijector_test_util.py | 52 rtol=0.01, 73 the variance based check of the Jacobian will require small `rtol` or 76 rtol: Positive number. Used for the Jacobian check. 151 inverse_forward_x_v, uniform_x_samps_v, atol=1e-5, rtol=1e-3) 153 forward_inverse_y_v, uniform_y_samps_v, atol=1e-5, rtol=1e-3) 156 upper_x - lower_x, change_measure_dy_dx_v, atol=0, rtol=rtol) 160 dy_dx_v, np.divide(1., dx_dy_v), atol=1e-5, rtol=1e-3) 164 bijector, x, y, event_ndims, atol=0, rtol=1e-5, sess=None): 177 rtol: Relative tolerance [all...] |
/external/tensorflow/tensorflow/python/kernel_tests/signal/ |
dct_ops_test.py | 106 def _compare(self, signals, norm, dct_type, atol=5e-4, rtol=5e-4): 110 self.assertAllClose(np_dct, tf_dct, atol=atol, rtol=rtol) 113 self.assertAllClose(np_idct, tf_idct, atol=atol, rtol=rtol) 116 self.assertAllClose(scipy_dct, tf_dct, atol=atol, rtol=rtol) 118 self.assertAllClose(scipy_idct, tf_idct, atol=atol, rtol=rtol) 131 self.assertAllClose(signals, tf_idct_dct, atol=atol, rtol=rtol [all...] |
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/ |
mvn_diag_plus_low_rank_test.py | 315 atol=0., rtol=0.02) 317 atol=0., rtol=1e-6) 320 atol=0., rtol=0.02) 322 atol=0., rtol=1e-6) 325 atol=0., rtol=0.02) 327 atol=0., rtol=1e-6) 330 atol=0., rtol=0.02) 332 atol=0., rtol=1e-6) 335 atol=0., rtol=1e-6) 338 atol=0., rtol=0.02 [all...] |
poisson_lognormal_test.py | 43 sess.run, pln, batch_size=1, rtol=0.1) 57 sess.run, pln, rtol=0.02) 71 sess.run, pln, batch_size=2, rtol=0.1, atol=0.01) 85 sess.run, pln, rtol=0.1, atol=0.01) 99 sess.run, pln, batch_size=4, rtol=0.1, atol=0.08) 113 sess.run, pln, rtol=0.1, atol=0.01)
|
vector_diffeomixture_test.py | 61 sess.run, vdm, radius=2., center=0., rtol=0.015) 64 sess.run, vdm, radius=4., center=2., rtol=0.015) 90 sess.run, vdm, radius=2., center=1., rtol=0.015) 93 sess.run, vdm, radius=4., center=3., rtol=0.01) 122 sess.run, vdm, radius=2., center=0., rtol=0.01) 125 sess.run, vdm, radius=4., center=2., rtol=0.01) 149 sess.run, vdm, radius=2., center=0., rtol=0.01) 152 sess.run, vdm, radius=3., center=loc_1, rtol=0.02) 177 sess.run, vdm, rtol=0.02, cov_rtol=0.08) 216 sess.run, vdm, rtol=0.02, cov_rtol=0.08 [all...] |
vector_student_t_test.py | 95 rtol=0., atol=1e-5) 98 rtol=0., atol=1e-5) 124 rtol=0., atol=1e-5) 127 rtol=0., atol=1e-5) 157 rtol=0., atol=1e-5) 160 rtol=0., atol=1e-5) 188 rtol=0., atol=1e-5) 191 rtol=0., atol=1e-5) 223 rtol=0., atol=1e-5) 226 rtol=0., atol=1e-5 [all...] |
moving_stats_test.py | 62 self.assertAllClose(true_mean, ema_, rtol=0.005, atol=0.015) 63 self.assertAllClose(true_stddev**2., emv_, rtol=0.06, atol=0.) 80 self.assertAllClose(true_mean, ema_, rtol=0.005, atol=0.015) 81 self.assertAllClose(true_stddev**2., emv_, rtol=0.1, atol=0.) 103 self.assertAllClose(true_mean, ema_, rtol=0.005, atol=0.015) 104 self.assertAllClose(true_stddev**2., emv_, rtol=0.06, atol=0.) 126 self.assertAllClose(expected_, log_mean_exp_, rtol=1e-6, atol=1e-9)
|
/external/tensorflow/tensorflow/python/keras/ |
activations_test.py | 65 self.assertAllClose(result[0], expected, rtol=1e-05) 77 self.assertAllClose(result[0, 0], expected, rtol=1e-05) 87 self.assertAllClose(result, positive_values * scale, rtol=1e-05) 103 self.assertAllClose(result, expected, rtol=1e-05) 114 self.assertAllClose(result, expected, rtol=1e-05) 130 self.assertAllClose(result, expected, rtol=1e-05) 143 self.assertAllClose(result, expected, rtol=1e-05) 150 self.assertAllClose(result, positive_values, rtol=1e-05) 155 self.assertAllClose(result, expected, rtol=1e-05) 162 self.assertAllClose(result, test_values, rtol=1e-05 [all...] |
/external/tensorflow/tensorflow/contrib/timeseries/python/timeseries/ |
math_utils_test.py | 72 rtol=1e-5, 86 rtol=1e-5, 279 warmup_iterations=0, rtol=1e-6, data_length=500, chunk_size=4): 308 rtol=rtol) 313 rtol=rtol) 317 rtol=rtol) 321 rtol=rtol [all...] |
/external/tensorflow/tensorflow/contrib/opt/python/training/ |
matrix_functions_test.py | 48 expected_mat, mat_root, atol=TOLERANCE, rtol=TOLERANCE) 59 expected_mat, mat_root, atol=TOLERANCE, rtol=TOLERANCE)
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
cross_grad_test.py | 42 self.assertAllClose(jacob_u[0], jacob_u[1], rtol=1e-3, atol=1e-3) 43 self.assertAllClose(jacob_v[0], jacob_v[1], rtol=1e-3, atol=1e-3)
|
/external/tensorflow/tensorflow/python/kernel_tests/distributions/ |
special_math_test.py | 82 ErrorSpec = collections.namedtuple("ErrorSpec", ["rtol", "atol"]) 156 _error32 = ErrorSpec(rtol=1e-4, atol=0.) 157 _error64 = ErrorSpec(rtol=1e-6, atol=0.) 188 rtol=error_spec.rtol, 214 rtol=error_spec.rtol, 230 _error32 = ErrorSpec(rtol=1e-4, atol=0.) 231 _error64 = ErrorSpec(rtol=1e-4, atol=0.) 245 _error32 = ErrorSpec(rtol=0.1, atol=1e-7 [all...] |
/external/tensorflow/tensorflow/python/ops/ |
collective_ops_test.py | 48 self.assertAllClose(results[0], expected, rtol=1e-5, atol=1e-5) 49 self.assertAllClose(results[1], expected, rtol=1e-5, atol=1e-5) 67 self.assertAllClose(results[i], expected, rtol=1e-5, atol=1e-5) 108 self.assertAllClose(results[0], t0, rtol=1e-5, atol=1e-5) 109 self.assertAllClose(results[1], t0, rtol=1e-5, atol=1e-5) 130 self.assertAllClose(results[0], expected, rtol=1e-5, atol=1e-5) 131 self.assertAllClose(results[1], expected, rtol=1e-5, atol=1e-5)
|