Home
last modified time | relevance | path

Searched refs:assertNear (Results 1 – 18 of 18) sorted by relevance

/external/tensorflow/tensorflow/examples/speech_commands/
Dgenerate_streaming_test_wav_test.py30 self.assertNear(1.0, track_data[2500], 0.0001)
31 self.assertNear(0.0, track_data[3500], 0.0001)
Dinput_data_test.py267 self.assertNear(0, spectrogram[0, 0, 0], 0.1)
268 self.assertNear(200, spectrogram[0, 0, 5], 0.1)
275 self.assertNear(0.0, features_min, 1e-5)
/external/tensorflow/tensorflow/python/tools/
Dstrip_unused_test.py50 self.assertNear(-4.0, output, 0.00001)
96 self.assertNear(20.0, output, 0.00001)
113 self.assertNear(6.0, output, 0.00001)
156 self.assertNear(-50.0, output, 0.00001)
Dfreeze_graph_test.py65 self.assertNear(2.0, output, 0.00001)
116 self.assertNear(2.0, output, 0.00001)
181 self.assertNear(2.0, output, 0.00001)
218 self.assertNear(2.0, output, 0.00001)
272 self.assertNear(feature_value, output, 0.00001)
/external/tensorflow/tensorflow/python/ops/
Dinit_ops_v2_test.py321 self.assertNear(np.mean(x), expect_mean, err=1e-2)
322 self.assertNear(np.var(x), expect_var, err=1e-2)
337 self.assertNear(np.mean(x), expect_mean, err=1e-2)
338 self.assertNear(np.var(x), expect_var, err=1e-2)
353 self.assertNear(np.mean(x), expect_mean, err=1e-2)
354 self.assertNear(np.var(x), expect_var, err=1e-2)
366 self.assertNear(np.mean(x), expect_mean, err=1e-2)
367 self.assertNear(np.var(x), expect_var, err=1e-2)
384 self.assertNear(np.mean(x), expect_mean, err=2e-3)
385 self.assertNear(np.var(x), expect_var, err=2e-3)
Dimage_ops_test.py5631 self.assertNear(30.321, psnr1, 0.001, msg="q20.dtype=" + str(q20.dtype))
5633 self.assertNear(29.994, psnr2, 0.001)
5635 self.assertNear(35.302, psnr3, 0.001)
Dnn_test.py724 self.assertNear(
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dstudent_t_test.py416 self.assertNear(np.pi, np.mean(sample_vals), err=0.1)
417 self.assertNear(np.pi, mean_val, err=1e-6)
423 self.assertNear(stats.t.pdf(np.pi, 3., loc=np.pi), mean_pdf_val, err=1e-6)
452 self.assertNear(5., np.mean(sample_vals[:, 0, :]), err=0.1)
453 self.assertNear(6., np.mean(sample_vals[:, 1, :]), err=0.1)
460 self.assertNear(
464 self.assertNear(
477 self.assertNear(1., total, err=err)
Dlaplace_test.py328 self.assertNear(1., total, err=err)
Dgamma_test.py341 self.assertNear(1., total, err=err)
/external/tensorflow/tensorflow/python/training/
Dmonitored_session_test.py1958 self.assertNear(3.2, session.run_step_fn(step_fn), 0.1)
2030 self.assertNear(3.2, session.run_step_fn(model.step_fn), 0.1)
2079 self._testing.assertNear(0.3 + 0.5 + 0.7,
2081 self._testing.assertNear(0.3 + 0.5 + 0.7 + 1.1,
2085 self.assertNear(0.3, step_context.session.run(stage_0), 0.1)
2110 self._testing.assertNear(0.3 + 0.5 + 0.7,
2112 self._testing.assertNear(0.3 + 0.5 + 0.7 + 1.1,
2116 self.assertNear(0.3, step_context.session.run(stage_0), 0.1)
2161 self.assertNear(3.2, session.run_step_fn(step_fn), 0.1)
2190 self.assertNear(3.2, session.run_step_fn(step_fn), 0.1)
[all …]
Dsaver_test.py208 self.assertNear(0.0, self.evaluate(v1), 1e-5)
212 self.assertNear(3.14, self.evaluate(v1), 1e-5)
/external/tensorflow/tensorflow/python/kernel_tests/array_ops/
Dinit_ops_test.py404 self.assertNear(np.mean(x), expect_mean, err=1e-2)
405 self.assertNear(np.var(x), expect_var, err=1e-2)
421 self.assertNear(np.mean(x), expect_mean, err=1e-2)
422 self.assertNear(np.var(x), expect_var, err=1e-2)
439 self.assertNear(np.mean(x), expect_mean, err=1e-2)
440 self.assertNear(np.var(x), expect_var, err=1e-2)
452 self.assertNear(np.mean(x), expect_mean, err=1e-2)
453 self.assertNear(np.var(x), expect_var, err=1e-2)
/external/tensorflow/tensorflow/python/framework/
Dconvert_to_constants_test.py959 self.assertNear(2.0, output, 0.00001)
979 self.assertNear(2.0, output, 0.00001)
996 self.assertNear(3.0, output, 0.00001)
1026 self.assertNear(3.0, output, 0.00001)
1028 self.assertNear(5.0, output, 0.00001)
Dtest_util.py2856 def assertNear(self, f1, f2, err, msg=None): member in TensorFlowTestCase
2888 self.assertNear(float(f1), float(f2), err, msg=msg)
/external/tensorflow/tensorflow/python/util/
Ddispatch_test.py156 self.assertNear(x_plus_y.score, 1.0, 0.001)
187 self.assertNear(result.score, 0.4, 0.001)
/external/tensorflow/tensorflow/python/distribute/
Dmirrored_strategy_test.py139 self.assertNear(expected, self.evaluate(reduced), 0.00001)
144 self.assertNear(expected, self.evaluate(reduced), 0.00001)
Dcustom_training_loop_input_test.py328 self.assertNear((2 * (5+6)/2 * (7+8)/2), product_of_means.numpy(), 1e-3)