Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/kernel_tests/
Dinit_ops_test.py564 self.assertArrayNear(self._LinSpace(1., 5., 1), np.array([1.]), 1e-5)
565 self.assertArrayNear(self._LinSpace(1., 5., 2), np.array([1., 5.]), 1e-5)
566 self.assertArrayNear(
568 self.assertArrayNear(
574 self.assertArrayNear(self._LinSpace(-1., -5., 1), np.array([-1.]), 1e-5)
575 self.assertArrayNear(
577 self.assertArrayNear(
579 self.assertArrayNear(
585 self.assertArrayNear(self._LinSpace(-1., 5., 1), np.array([-1.]), 1e-5)
586 self.assertArrayNear(
[all …]
Dconv_ops_test.py1149 self.assertArrayNear(expected, value.flatten(), err)
1330 self.assertArrayNear(value_2.flatten(), value.flatten(), err)
1375 self.assertArrayNear(value_2.flatten(), value.flatten(), err)
2693 self.assertArrayNear(expected, np.ravel(value), 1e-5)
2817 self.assertArrayNear(expected, np.ravel(value), 2e-3)
Dconv_ops_3d_test.py837 self.assertArrayNear(expected_value.flatten(), actual_value.flatten(),
Ddepthwise_conv_op_test.py512 self.assertArrayNear(expected, np.ravel(value), 1e-5)
/external/tensorflow/tensorflow/python/framework/experimental/
Dunified_api_test.py323 self.assertArrayNear(func_output.numpy(), [0.69314], 0.001)
326 self.assertArrayNear(eager_output.numpy(), [0.69314], 0.001)
347 self.assertArrayNear(func_outputs.numpy(), [0.5], 0.001)
350 self.assertArrayNear(eager_outputs.numpy(), [0.5], 0.001)
368 self.assertArrayNear(func_output.numpy(), [0.5], 0.001)
371 self.assertArrayNear(eager_output.numpy(), [0.5], 0.001)
394 self.assertArrayNear(func_outputs[0].numpy(), [0.25], 0.001)
395 self.assertArrayNear(func_outputs[1].numpy(), [-0.125], 0.001)
398 self.assertArrayNear(eager_outputs[0].numpy(), [0.25], 0.001)
399 self.assertArrayNear(eager_outputs[1].numpy(), [-0.125], 0.001)
/external/tensorflow/tensorflow/python/ops/
Dquantized_ops_test.py45 self.assertArrayNear(expected_output, value.output, 0.1)
56 self.assertArrayNear(expected_output, value, 0.1)
Dquantized_conv_ops_test.py82 self.assertArrayNear(expected, float_output.flatten(), 1.0)
/external/tensorflow/tensorflow/python/keras/
Dbackend_test.py1627 self.assertArrayNear(result[0], [8., 0.313, 1.313], 1e-3)
1635 self.assertArrayNear(self.evaluate(result), [.105, .116, .062], 1e-3)
1639 self.assertArrayNear(self.evaluate(result), [.105, .116, .062], 1e-3)
1643 self.assertArrayNear(self.evaluate(result)[0], [.002, 0, .17], 1e-3)
1647 self.assertArrayNear(self.evaluate(result)[0], [.002, 0, .17], 1e-3)
1663 self.assertArrayNear(result, [.105, .116, .062], 1e-3)
1670 self.assertArrayNear(result, [.105, .065, .111], 1e-3)
1679 self.assertArrayNear(result, [.002, 0, .17], 1e-3)
1686 self.assertArrayNear(result, [.002, .003, .036], 1e-3)
1695 self.assertArrayNear(result, [0.002, 0.0005, 0.17], 1e-3)
[all …]
Dmetrics_confusion_matrix_test.py359 self.assertArrayNear(initial_precision, self.evaluate(p_obj.result()),
407 self.assertArrayNear([0.5, 0.], self.evaluate(result), 0)
423 self.assertArrayNear([expected_precision, 0], self.evaluate(result), 1e-3)
442 self.assertArrayNear([expected_precision, 0], self.evaluate(p_obj.result()),
564 self.assertArrayNear(initial_recall, self.evaluate(r_obj.result()), 1e-3)
611 self.assertArrayNear([0.5, 0.], self.evaluate(result), 0)
627 self.assertArrayNear([expected_recall, 0], self.evaluate(result), 1e-3)
646 self.assertArrayNear([expected_recall, 0], self.evaluate(r_obj.result()),
Dlosses_test.py109 self.assertArrayNear(result, [.105, .116, .062], 1e-3)
118 self.assertArrayNear(result, [.002, 0, .17], 1e-3)
149 self.assertArrayNear(result, [.105, .116, .062], 1e-3)
158 self.assertArrayNear(result, [.002, 0, .17], 1e-3)
399 self.assertArrayNear(loss, [84.3333, 143.3666], 1e-3)
491 self.assertArrayNear(loss, [10.7333, 14.5666], 1e-3)
587 self.assertArrayNear(loss, [621.8518, 352.6666], 1e-3)
Dmetrics_test.py1252 self.assertArrayNear(self.evaluate(mre_obj.normalizer), [1, 3], 1e-1)
1256 self.assertArrayNear(self.evaluate(mre_obj2.normalizer), [1, 3], 1e-1)
2314 self.assertArrayNear(self.evaluate(m_obj.total_cm)[0], [1, 0], 1e-1)
2315 self.assertArrayNear(self.evaluate(m_obj.total_cm)[1], [3, 0], 1e-1)
2317 self.assertArrayNear(self.evaluate(m_obj.total_cm)[0], [1, 0], 1e-1)
2318 self.assertArrayNear(self.evaluate(m_obj.total_cm)[1], [3, 0], 1e-1)
/external/tensorflow/tensorflow/tools/compatibility/testdata/
Dtest_file_v1_12.py85 self.assertArrayNear(
/external/tensorflow/tensorflow/python/framework/
Dtest_util_test.py382 self.assertArrayNear(a, b, 0.001)
386 self.assertArrayNear(a, b, 0.001)
389 self.assertArrayNear(a, b, 0.001)
Dtest_util.py2527 def assertArrayNear(self, farray1, farray2, err, msg=None): member in TensorFlowTestCase
/external/tensorflow/tensorflow/compiler/tests/
Ddepthwise_conv_op_test.py285 self.assertArrayNear(expected, np.ravel(value), 1e-4)
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_test.py2981 self.assertArrayNear(scores, [0.25, 0.75], 0.1)
2986 self.assertArrayNear(scores, [0.3328, 0.8], 0.001)
3224 self.assertArrayNear(eval_results[1:4], [1, 1, 5], 0.1)
/external/tensorflow/tensorflow/python/keras/saving/
Dsave_test.py413 self.assertArrayNear(eval_out, eval_out2, 0.001)
/external/tensorflow/tensorflow/python/keras/distribute/
Ddistribute_strategy_test.py1374 self.assertArrayNear(output, ref_output, 1e-1)
2097 self.assertArrayNear(history.history['loss'], ds_history.history['loss'],