Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/examples/speech_commands/
Dgenerate_streaming_test_wav_test.py34 self.assertNear(1.0, track_data[2500], 0.0001)
35 self.assertNear(0.0, track_data[3500], 0.0001)
Dinput_data_test.py271 self.assertNear(0, spectrogram[0, 0, 0], 0.1)
272 self.assertNear(200, spectrogram[0, 0, 5], 0.1)
279 self.assertNear(0.0, features_min, 1e-5)
/external/tensorflow/tensorflow/python/tools/
Dstrip_unused_test.py54 self.assertNear(-4.0, output, 0.00001)
100 self.assertNear(20.0, output, 0.00001)
117 self.assertNear(6.0, output, 0.00001)
160 self.assertNear(-50.0, output, 0.00001)
Dfreeze_graph_test.py69 self.assertNear(2.0, output, 0.00001)
120 self.assertNear(2.0, output, 0.00001)
185 self.assertNear(2.0, output, 0.00001)
222 self.assertNear(2.0, output, 0.00001)
276 self.assertNear(feature_value, output, 0.00001)
/external/tensorflow/tensorflow/python/ops/
Dinit_ops_v2_test.py325 self.assertNear(np.mean(x), expect_mean, err=1e-2)
326 self.assertNear(np.var(x), expect_var, err=1e-2)
341 self.assertNear(np.mean(x), expect_mean, err=1e-2)
342 self.assertNear(np.var(x), expect_var, err=1e-2)
357 self.assertNear(np.mean(x), expect_mean, err=1e-2)
358 self.assertNear(np.var(x), expect_var, err=1e-2)
370 self.assertNear(np.mean(x), expect_mean, err=1e-2)
371 self.assertNear(np.var(x), expect_var, err=1e-2)
388 self.assertNear(np.mean(x), expect_mean, err=1e-3)
389 self.assertNear(np.var(x), expect_var, err=1e-3)
Dimage_ops_test.py5354 self.assertNear(30.321, psnr1, 0.001, msg="q20.dtype=" + str(q20.dtype))
5356 self.assertNear(29.994, psnr2, 0.001)
5358 self.assertNear(35.302, psnr3, 0.001)
Dnn_test.py749 self.assertNear(
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dstudent_t_test.py420 self.assertNear(np.pi, np.mean(sample_vals), err=0.1)
421 self.assertNear(np.pi, mean_val, err=1e-6)
427 self.assertNear(stats.t.pdf(np.pi, 3., loc=np.pi), mean_pdf_val, err=1e-6)
456 self.assertNear(5., np.mean(sample_vals[:, 0, :]), err=0.1)
457 self.assertNear(6., np.mean(sample_vals[:, 1, :]), err=0.1)
464 self.assertNear(
468 self.assertNear(
481 self.assertNear(1., total, err=err)
Dlaplace_test.py332 self.assertNear(1., total, err=err)
Dgamma_test.py345 self.assertNear(1., total, err=err)
/external/tensorflow/tensorflow/python/training/
Dmonitored_session_test.py1921 self.assertNear(3.2, session.run_step_fn(step_fn), 0.1)
1993 self.assertNear(3.2, session.run_step_fn(model.step_fn), 0.1)
2042 self._testing.assertNear(0.3 + 0.5 + 0.7,
2044 self._testing.assertNear(0.3 + 0.5 + 0.7 + 1.1,
2048 self.assertNear(0.3, step_context.session.run(stage_0), 0.1)
2073 self._testing.assertNear(0.3 + 0.5 + 0.7,
2075 self._testing.assertNear(0.3 + 0.5 + 0.7 + 1.1,
2079 self.assertNear(0.3, step_context.session.run(stage_0), 0.1)
2124 self.assertNear(3.2, session.run_step_fn(step_fn), 0.1)
2153 self.assertNear(3.2, session.run_step_fn(step_fn), 0.1)
[all …]
Dsaver_test.py211 self.assertNear(0.0, self.evaluate(v1), 1e-5)
215 self.assertNear(3.14, self.evaluate(v1), 1e-5)
/external/tensorflow/tensorflow/python/util/
Ddispatch_test.py146 self.assertNear(x_plus_y.score, 1.0, 0.001)
176 self.assertNear(result.score, 0.4, 0.001)
/external/tensorflow/tensorflow/python/framework/
Dconvert_to_constants_test.py575 self.assertNear(2.0, output, 0.00001)
595 self.assertNear(2.0, output, 0.00001)
612 self.assertNear(3.0, output, 0.00001)
642 self.assertNear(3.0, output, 0.00001)
644 self.assertNear(5.0, output, 0.00001)
Dtest_util.py2509 def assertNear(self, f1, f2, err, msg=None): member in TensorFlowTestCase
2541 self.assertNear(float(f1), float(f2), err, msg=msg)
/external/tensorflow/tensorflow/python/keras/distribute/
Dminimize_loss_test.py296 self.assertNear(expected_moving_means[i], moving_means[i], 0.0001)
408 self.assertNear(weight, 2 + 0.106 * distribution.num_replicas_in_sync,
412 self.assertNear(weight, 2 + 0.053, 0.0001)
Ddistribute_strategy_test.py2583 self.assertNear(
/external/tensorflow/tensorflow/python/kernel_tests/
Dinit_ops_test.py408 self.assertNear(np.mean(x), expect_mean, err=1e-2)
409 self.assertNear(np.var(x), expect_var, err=1e-2)
425 self.assertNear(np.mean(x), expect_mean, err=1e-2)
426 self.assertNear(np.var(x), expect_var, err=1e-2)
443 self.assertNear(np.mean(x), expect_mean, err=1e-2)
444 self.assertNear(np.var(x), expect_var, err=1e-2)
456 self.assertNear(np.mean(x), expect_mean, err=1e-2)
457 self.assertNear(np.var(x), expect_var, err=1e-2)
/external/tensorflow/tensorflow/python/distribute/
Dmirrored_strategy_test.py119 self.assertNear(expected, self.evaluate(reduced), 0.00001)
124 self.assertNear(expected, self.evaluate(reduced), 0.00001)
Dcustom_training_loop_input_test.py330 self.assertNear((2 * (5+6)/2 * (7+8)/2), product_of_means.numpy(), 1e-3)
/external/tensorflow/tensorflow/python/keras/saving/
Dsave_test.py815 self.assertNear(