Home
last modified time | relevance | path

Searched refs:rtol (Results 1 – 25 of 254) sorted by relevance

1234567891011

/external/tensorflow/tensorflow/contrib/distributions/python/ops/
Dtest_util.py45 rtol=1e-2, atol=0.): argument
102 rtol=rtol, atol=atol)
107 rtol=1e-2, atol=0.): argument
151 self.assertAllClose(mean_, sample_mean_, rtol=rtol, atol=atol)
152 self.assertAllClose(variance_, sample_variance_, rtol=rtol, atol=atol)
153 self.assertAllClose(stddev_, sample_stddev_, rtol=rtol, atol=atol)
205 rtol=1e-2, argument
322 rtol=rtol, atol=atol)
330 rtol=1e-2, argument
387 self.assertAllClose(mean_, sample_mean_, rtol=rtol, atol=atol)
[all …]
Ddeterministic.py58 rtol=None, argument
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 _BaseDeterministic
232 rtol=None, argument
269 rtol=rtol,
346 rtol=None, argument
386 rtol=rtol,
/external/tensorflow/tensorflow/python/ops/distributions/
Dbijector_test_util.py52 rtol=0.01, argument
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): argument
222 np.testing.assert_allclose(x_from_x, x, atol=atol, rtol=rtol)
223 np.testing.assert_allclose(y_from_y, y, atol=atol, rtol=rtol)
224 np.testing.assert_allclose(-ildj_f_x, fldj_x, atol=atol, rtol=rtol)
225 np.testing.assert_allclose(-ildj_y, fldj_g_y, atol=atol, rtol=rtol)
/external/tensorflow/tensorflow/core/framework/
Dtensor_testutil.cc23 void ExpectClose(const Tensor& x, const Tensor& y, double atol, double rtol) { in ExpectClose() argument
40 (rtol < 0) ? kDefaultTol : static_cast<RealType>(rtol); in ExpectClose()
53 void ExpectClose(const Tensor& x, const Tensor& y, double atol, double rtol) { in ExpectClose() argument
57 ExpectClose<Eigen::half>(x, y, atol, rtol); in ExpectClose()
60 ExpectClose<float>(x, y, atol, rtol); in ExpectClose()
63 ExpectClose<double>(x, y, atol, rtol); in ExpectClose()
66 ExpectClose<complex64>(x, y, atol, rtol); in ExpectClose()
69 ExpectClose<complex128>(x, y, atol, rtol); in ExpectClose()
/external/tensorflow/tensorflow/python/kernel_tests/signal/
Ddct_ops_test.py106 def _compare(self, signals, norm, dct_type, atol=5e-4, rtol=5e-4): argument
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)
132 self.assertAllClose(signals, tf_dct_idct, atol=atol, rtol=rtol)
Dfft_ops_test.py43 rtol=1e-4, atol=1e-4): argument
44 self._compareForward(x, rank, fft_length, use_placeholder, rtol, atol)
45 self._compareBackward(x, rank, fft_length, use_placeholder, rtol, atol)
48 rtol=1e-4, atol=1e-4): argument
56 self.assertAllClose(x_np, x_tf, rtol=rtol, atol=atol)
59 rtol=1e-4, atol=1e-4): argument
67 self.assertAllClose(x_np, x_tf, rtol=rtol, atol=atol)
76 rtol=1e-2, atol=1e-2): argument
93 self.assertAllClose(x_jacob_t, x_jacob_n, rtol=rtol, atol=atol)
94 self.assertAllClose(y_jacob_t, y_jacob_n, rtol=rtol, atol=atol)
[all …]
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/
Dmvn_diag_plus_low_rank_test.py315 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 …]
Dvector_diffeomixture_test.py61 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 …]
Dbatch_reshape_test.py95 atol=0., rtol=1e-6)
97 atol=0., rtol=1e-6)
151 atol=0., rtol=1e-6)
153 atol=0., rtol=1e-6)
155 atol=0., rtol=1e-6)
157 atol=0., rtol=1e-6)
159 atol=0., rtol=1e-6)
220 atol=0., rtol=1e-6)
222 atol=0., rtol=1e-6)
273 atol=0., rtol=1e-6)
[all …]
Dvector_student_t_test.py95 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 …]
Dpoisson_lognormal_test.py43 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)
Dmoving_stats_test.py62 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)
Dvector_sinh_arcsinh_diag_test.py133 rtol=0.03)
137 rtol=0.03)
178 rtol=0.03)
182 rtol=0.03)
213 sess.run, sasnorm, radius=1.0, center=0., rtol=0.1)
219 rtol=0.1)
225 rtol=0.1)
240 sess.run, sasnorm, radius=1.0, center=0., rtol=0.1)
246 rtol=0.1)
252 rtol=0.1)
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dspecial_math_test.py156 _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)
246 _error64 = ErrorSpec(rtol=0.1, atol=1e-7)
259 _error32 = ErrorSpec(rtol=1e-6, atol=1e-14)
260 _error64 = ErrorSpec(rtol=1e-6, atol=1e-14)
[all …]
/external/tensorflow/tensorflow/contrib/timeseries/python/timeseries/
Dmath_utils_test.py72 rtol=1e-5,
86 rtol=1e-5,
279 warmup_iterations=0, rtol=1e-6, data_length=500, chunk_size=4): argument
308 rtol=rtol)
313 rtol=rtol)
317 rtol=rtol)
321 rtol=rtol)
325 rtol=rtol)
329 rtol=rtol)
343 rtol=0.1)
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/bijectors/
Dreshape_test.py69 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 …]
Dmatrix_inverse_tril_test.py60 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)
Dsigmoid_test.py40 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)
Dsinh_arcsinh_bijector_test.py57 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,
/external/tensorflow/tensorflow/python/keras/
Dactivations_test.py65 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/cudnn_rnn/python/kernel_tests/
Dcudnn_rnn_ops_test.py354 rtol=3e-6, argument
369 self.assertAllClose(outputs, cu_outputs, rtol=rtol, atol=atol)
371 self.assertAllClose(s, cu_s, rtol=rtol, atol=atol)
373 self.assertAllClose(sg, cu_sg, rtol=rtol, atol=atol)
374 self.assertAllClose(inp_grad, cu_inp_grad, rtol=rtol, atol=atol)
375 self.assertAllClose(bgrad, cu_bgrad, rtol=rtol, atol=atol)
376 self.assertAllClose(wgrad, cu_wgrad, rtol=rtol, atol=atol)
423 rtol=5e-3,
489 rtol, atol = 5e-3, 5e-4
490 self.assertAllClose(outputs, cu_outputs, rtol=rtol, atol=atol)
[all …]
/external/tensorflow/tensorflow/contrib/rnn/python/kernel_tests/
Dlstm_ops_test.py407 rtol=1e-6, argument
415 self.assertAllClose(basic_outputs, block_outputs, rtol=rtol, atol=atol)
416 self.assertAllClose(basic_grads, block_grads, rtol=rtol, atol=atol)
418 self.assertAllClose(basic, block, rtol=rtol, atol=atol)
420 self.assertAllClose(basic_outputs, fused_outputs, rtol=rtol, atol=atol)
421 self.assertAllClose(basic_state, fused_state, rtol=rtol, atol=atol)
422 self.assertAllClose(basic_grads, fused_grads, rtol=rtol, atol=atol)
424 self.assertAllClose(basic, fused, rtol=rtol, atol=atol)
427 def testLSTMBasicToBlock(self, dtype, rtol, atol): argument
429 dtype, use_peephole=False, rtol=rtol, atol=atol)
[all …]
/external/tensorflow/tensorflow/contrib/opt/python/training/
Dexternal_optimizer_test.py58 def assertAllClose(self, array1, array2, rtol=1e-5, atol=1e-5): argument
66 super(TestCase, self).assertAllClose(array1, array2, rtol=rtol, atol=atol)
160 rtol=1e-5, argument
171 self.assertAllClose(np.ones(dimension), sess.run(x), rtol=rtol, atol=atol)
187 method='Nelder-Mead', options={}, rtol=1e-4, atol=1e-4)
194 rtol=1e-3,
202 rtol=1e-1,
212 rtol=1e-1,
218 method='SLSQP', options={}, rtol=1e-3, atol=1e-3)
222 method='CG', options={'gtol': 1e-03}, rtol=1e-3, atol=1e-3)
/external/tensorflow/tensorflow/contrib/bayesflow/python/kernel_tests/
Dmonte_carlo_test.py68 self.assertAllClose(p.mean().eval(), e_x.eval(), rtol=0.01)
69 self.assertAllClose(p.stddev().eval(), stddev.eval(), rtol=0.02)
94 self.assertAllClose(0.5, prob.eval(), rtol=0.05)
123 self.assertAllClose([1., (2 / 3.)**2], e_x2.eval(), rtol=0.02)
199 self.assertAllClose(efx_true_, efx_reparam_, rtol=0.005, atol=0.)
200 self.assertAllClose(efx_true_, efx_score_, rtol=0.005, atol=0.)
208 rtol=0.03, atol=0.)
213 rtol=0.05, atol=0.)
235 rtol=0.01, atol=0.)
253 rtol=0.01, atol=0.)
[all …]
/external/tensorflow/tensorflow/python/ops/
Dcollective_ops_test.py48 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)

1234567891011