/external/tensorflow/tensorflow/contrib/distributions/python/ops/ |
D | test_util.py | 45 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) 206 atol=0.): argument 322 rtol=rtol, atol=atol) 331 atol=0.1, argument 387 self.assertAllClose(mean_, sample_mean_, rtol=rtol, atol=atol) [all …]
|
D | deterministic.py | 57 atol=None, argument 99 with ops.name_scope(name, values=[loc, atol, rtol]) as name: 120 self._atol = self._get_tol(atol) 124 self._slack = self.atol 126 self._slack = self.atol + self.rtol * math_ops.abs(self.loc) 146 def atol(self): member in _BaseDeterministic 231 atol=None, argument 268 atol=atol, 345 atol=None, argument 385 atol=atol,
|
/external/tensorflow/tensorflow/core/framework/ |
D | tensor_testutil.cc | 23 void ExpectClose(const Tensor& x, const Tensor& y, double atol, double rtol) { in ExpectClose() argument 38 (atol < 0) ? kDefaultTol : static_cast<RealType>(atol); 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/ops/distributions/ |
D | bijector_test_util.py | 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/python/kernel_tests/ |
D | linalg_ops_test.py | 59 for np_type, atol in [(np.float32, 0.05), (np.float64, 1e-5)]: 70 rhs, math_ops.matmul(array, x).eval(), atol=atol) 81 for np_dtype, atol in [(np.float32, 0.05), (np.float64, 1e-5), 91 self.assertAllClose(logdet_np, self.evaluate(logdet_tf), atol=atol) 94 for np_dtype, atol in [(np.float32, 0.05), (np.float64, 1e-5), 100 self.assertAllClose(logdet_np, self.evaluate(logdet_tf), atol=atol) 111 for np_dtype, atol in [(np.float32, 0.05), (np.float64, 1e-5), 118 log_abs_det_np, self.evaluate(log_abs_det_tf), atol=atol) 119 self.assertAllClose(sign_np, self.evaluate(sign_tf), atol=atol) 122 for np_dtype, atol in [(np.float32, 0.05), (np.float64, 1e-5), [all …]
|
D | self_adjoint_eig_op_test.py | 90 np.matmul(v, v.transpose()), np.eye(32, dtype=np.float32), atol=2e-3) 126 self.assertAllClose(x, y, atol=tol) 138 self.assertAllClose(x_ei, y_ei, atol=tol, rtol=tol) 154 atol = 1e-4 156 atol = 1e-12 167 self.assertAllClose(self.evaluate(a_ev), a, atol=atol) 171 self.evaluate(tf_v), atol) 175 np.sort(np_e, -1), np.sort(self.evaluate(tf_e), -1), atol=atol) 237 self.assertAllClose(theoretical, numerical, atol=tol, rtol=tol)
|
/external/tensorflow/tensorflow/contrib/linear_optimizer/python/kernel_tests/ |
D | sdca_ops_test.py | 276 self.assertAllClose(0.411608, unregularized_loss.eval(), atol=0.05) 277 self.assertAllClose(0.525457, loss.eval(), atol=0.01) 281 0.01, lr.approximate_duality_gap().eval(), rtol=1e-2, atol=1e-2) 324 self.assertAllClose(0.411608, unregularized_loss.eval(), atol=0.05) 325 self.assertAllClose(0.525457, loss.eval(), atol=0.01) 329 0.01, lr.approximate_duality_gap().eval(), rtol=1e-2, atol=1e-2) 386 self.assertAllClose(0.512591, unregularized_loss.eval(), atol=0.05) 387 self.assertAllClose(0.593014, loss.eval(), atol=0.01) 391 0.01, lr.approximate_duality_gap().eval(), rtol=1e-2, atol=1e-2) 511 self.assertAllClose(0.411608, unregularized_loss.eval(), atol=0.02) [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/signal/ |
D | dct_ops_test.py | 106 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)
|
D | fft_ops_test.py | 43 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/ |
D | 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 …]
|
D | batch_reshape_test.py | 95 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 …]
|
D | 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 …]
|
D | 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/kernel_tests/distributions/ |
D | special_math_test.py | 105 self.assertAllClose(expected_x, self.evaluate(x), atol=0.) 121 self.assertAllClose(expected_x_, x_, atol=0.) 156 _error32 = ErrorSpec(rtol=1e-4, atol=0.) 157 _error64 = ErrorSpec(rtol=1e-6, atol=0.) 189 atol=error_spec.atol) 215 atol=error_spec.atol) 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) [all …]
|
/external/tensorflow/tensorflow/compiler/tests/ |
D | cholesky_op_test.py | 42 def _verifyCholeskyBase(self, sess, placeholder, x, chol, verification, atol): argument 44 self.assertAllClose(x, verification_np, atol=atol) 52 self.assertAllClose(chol_matrix, np.tril(chol_matrix), atol=atol) 55 def _verifyCholesky(self, x, atol=1e-6): argument 63 self._verifyCholeskyBase(sess, placeholder, x, chol, verification, atol) 84 self._verifyCholesky(matrices, atol=1e-4) 109 self._verifyCholesky(data, atol=1e-4) 126 self._verifyCholesky(matrix, atol=1e-4)
|
D | matrix_triangular_solve_op_test.py | 50 atol): argument 53 self.assertAllClose(b, verification_np, atol=atol) 55 def _VerifyTriangularSolve(self, a, b, lower, adjoint, atol): argument 67 verification, atol) 69 def _VerifyTriangularSolveCombo(self, a, b, atol=1e-4): argument 73 a if lower else transp(a), b, lower, adjoint, atol) 106 a.astype(dtype), b.astype(dtype), atol=1e-3)
|
/external/tensorflow/tensorflow/contrib/boosted_trees/python/utils/ |
D | losses_test.py | 61 self.assertAllClose(np.exp(np.ones([2, 1])), pos_loss[:2], atol=1e-4) 62 self.assertAllClose(np.exp(-np.ones([2, 1])), neg_loss[:2], atol=1e-4) 67 self.assertAllClose(np.exp(-np.ones([4, 1])), pos_loss[6:10], atol=1e-4) 68 self.assertAllClose(np.exp(np.ones([4, 1])), neg_loss[6:10], atol=1e-4) 75 pos_loss[2:6], atol=1e-4) 78 neg_loss[2:6], atol=1e-4) 93 np.square(labels[:5] - predictions[:5]), loss[:5], atol=1e-4)
|
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/bijectors/ |
D | 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 …]
|
D | 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)
|
D | 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)
|
/external/tensorflow/tensorflow/contrib/cudnn_rnn/python/kernel_tests/ |
D | cudnn_rnn_ops_test.py | 355 atol=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) 424 atol=5e-4, 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/ |
D | lstm_ops_test.py | 408 atol=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/factorization/python/ops/ |
D | factorization_ops_test.py | 208 self.assertAllClose(row_factors[0], self._row_factors_0, atol=1e-3) 209 self.assertAllClose(row_factors[1], self._row_factors_1, atol=1e-3) 232 atol=1e-3) 236 atol=1e-3) 280 self.assertAllClose(col_factors[0], self._col_factors_0, atol=1e-3) 281 self.assertAllClose(col_factors[1], self._col_factors_1, atol=1e-3) 282 self.assertAllClose(col_factors[2], self._col_factors_2, atol=1e-3) 307 atol=1e-3) 312 atol=1e-3) 383 self.assertAllClose(row_factors[0], self._row_factors_0, atol=1e-3) [all …]
|
/external/tensorflow/tensorflow/contrib/opt/python/training/ |
D | external_optimizer_test.py | 58 def assertAllClose(self, array1, array2, rtol=1e-5, atol=1e-5): argument 66 super(TestCase, self).assertAllClose(array1, array2, rtol=rtol, atol=atol) 161 atol=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) 195 atol=1e-3) 203 atol=1e-1) 213 atol=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/metrics/python/kernel_tests/ |
D | histogram_ops_test.py | 78 atol=0.05, 88 atol=0.05, 103 atol=0.05, 116 atol=0.05, 127 atol=0.005, 136 atol=0.05, argument 182 np.testing.assert_allclose(desired_auc, auc_eval, atol=atol, err_msg=msg)
|