Home
last modified time | relevance | path

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

/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/kernel_tests/
Dinit_ops_test.py559 self.assertArrayNear(self._LinSpace(1., 5., 1), np.array([1.]), 1e-5)
560 self.assertArrayNear(self._LinSpace(1., 5., 2), np.array([1., 5.]), 1e-5)
561 self.assertArrayNear(
563 self.assertArrayNear(
569 self.assertArrayNear(self._LinSpace(-1., -5., 1), np.array([-1.]), 1e-5)
570 self.assertArrayNear(
572 self.assertArrayNear(
574 self.assertArrayNear(
580 self.assertArrayNear(self._LinSpace(-1., 5., 1), np.array([-1.]), 1e-5)
581 self.assertArrayNear(
[all …]
Ddepthwise_conv_op_test.py184 self.assertArrayNear(
276 self.assertArrayNear(expected, np.ravel(value), 1e-5)
Dconv_ops_test.py750 self.assertArrayNear(expected, value.flatten(), err)
936 self.assertArrayNear(expected, value.flatten(), err)
1117 self.assertArrayNear(value_2.flatten(), value.flatten(), err)
1162 self.assertArrayNear(value_2.flatten(), value.flatten(), err)
2438 self.assertArrayNear(expected, np.ravel(value), 1e-5)
2560 self.assertArrayNear(expected, np.ravel(value), 1e-3)
Dconv_ops_3d_test.py741 self.assertArrayNear(expected_value.flatten(), actual_value.flatten(),
/external/tensorflow/tensorflow/python/keras/
Dmetrics_confusion_matrix_test.py356 self.assertArrayNear(initial_precision, self.evaluate(p_obj.result()),
404 self.assertArrayNear([0.5, 0.], self.evaluate(result), 0)
420 self.assertArrayNear([expected_precision, 0], self.evaluate(result), 1e-3)
439 self.assertArrayNear([expected_precision, 0], self.evaluate(p_obj.result()),
561 self.assertArrayNear(initial_recall, self.evaluate(r_obj.result()), 1e-3)
608 self.assertArrayNear([0.5, 0.], self.evaluate(result), 0)
624 self.assertArrayNear([expected_recall, 0], self.evaluate(result), 1e-3)
643 self.assertArrayNear([expected_recall, 0], self.evaluate(r_obj.result()),
Dmetrics_test.py1082 self.assertArrayNear(self.evaluate(mre_obj.normalizer), [1, 3], 1e-1)
1086 self.assertArrayNear(self.evaluate(mre_obj2.normalizer), [1, 3], 1e-1)
1955 self.assertArrayNear(self.evaluate(m_obj.total_cm)[0], [1, 0], 1e-1)
1956 self.assertArrayNear(self.evaluate(m_obj.total_cm)[1], [3, 0], 1e-1)
1958 self.assertArrayNear(self.evaluate(m_obj.total_cm)[0], [1, 0], 1e-1)
1959 self.assertArrayNear(self.evaluate(m_obj.total_cm)[1], [3, 0], 1e-1)
Dlosses_test.py283 self.assertArrayNear(loss, [84.3333, 143.3666], 1e-3)
376 self.assertArrayNear(loss, [10.7333, 14.5666], 1e-3)
/external/tensorflow/tensorflow/tools/compatibility/testdata/
Dtest_file_v1_12.py95 self.assertArrayNear(
/external/tensorflow/tensorflow/contrib/boosted_trees/python/training/functions/
Dgbdt_batch_test.py1151 self.assertArrayNear(expected_leaf_1,
1153 self.assertArrayNear(expected_leaf_2,
1255 self.assertArrayNear(expected_leaf_1,
1257 self.assertArrayNear(expected_leaf_2,
1341 self.assertArrayNear(expected_leaf_1,
1343 self.assertArrayNear(expected_leaf_2,
1345 self.assertArrayNear(expected_leaf_3,
1347 self.assertArrayNear(expected_leaf_4,
/external/tensorflow/tensorflow/python/framework/
Dtest_util_test.py358 self.assertArrayNear(a, b, 0.001)
362 self.assertArrayNear(a, b, 0.001)
365 self.assertArrayNear(a, b, 0.001)
Dtest_util.py1977 def assertArrayNear(self, farray1, farray2, err, msg=None): member in TensorFlowTestCase
/external/tensorflow/tensorflow/compiler/tests/
Ddepthwise_conv_op_test.py258 self.assertArrayNear(expected, np.ravel(value), 1e-4)
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_test.py2442 self.assertArrayNear(scores, [0.25, 0.75], 0.1)
2447 self.assertArrayNear(scores, [0.3328, 0.8], 0.001)
2650 self.assertArrayNear(eval_results[1:4], [1, 1, 5], 0.1)
/external/tensorflow/tensorflow/contrib/distribute/python/
Dkeras_backward_compat_test.py734 self.assertArrayNear(output, ref_output, 1e-1)
Dkeras_test.py1143 self.assertArrayNear(output, ref_output, 1e-1)
/external/tensorflow/tensorflow/python/keras/saving/
Dhdf5_format_test.py390 self.assertArrayNear(eval_out, eval_out2, 0.001)
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dfeature_column_ops_test.py84 self.assertArrayNear(output.values.eval(), [4.0, 25.0], 1e-5)