/external/python/pybind11/tests/ |
D | test_numpy_vectorize.py | 19 assert np.allclose(f(np.array([1, 3]), np.array([2, 4]), 3), [6, 36]) 32 assert np.allclose(result, a * b * c) 50 assert np.allclose(f(a, b, c), a * b * c) 64 assert np.allclose(f(a, b, c), a * b * c) 78 assert np.allclose(f(a, b, c), a * b * c) 96 assert np.allclose(f(a, b, c), a * b * c) 110 assert np.allclose(f(a, b, c), a * b * c) 126 assert np.allclose(f(a, b, c), a * b * c)
|
D | test_sequences_and_iterators.py | 12 def allclose(a_list, b_list, rel_tol=1e-05, abs_tol=0.0): function 79 assert allclose(rev, expected) 80 assert allclose(rev2, expected) 86 assert allclose(rev, [2, 56.78, 2, 0, 2])
|
/external/tensorflow/tensorflow/lite/tools/optimize/sparsity/python/ |
D | format_converter_extension_test.py | 67 self.assertTrue(np.allclose(expected_data, sparse_data)) 70 self.assertTrue(np.allclose(dense_matrix, converter.GetData()))
|
/external/tensorflow/tensorflow/lite/experimental/examples/lstm/ |
D | unidirectional_sequence_lstm_test.py | 258 self.assertTrue(np.allclose(expected_output, result, rtol=1e-6, atol=1e-2)) 262 self.assertTrue(np.allclose(expected_output, result, rtol=1e-6, atol=1e-2)) 282 self.assertTrue(np.allclose(expected_output, result, rtol=1e-6, atol=1e-2)) 286 self.assertTrue(np.allclose(expected_output, result, rtol=1e-6, atol=1e-2))
|
D | unidirectional_sequence_rnn_test.py | 249 self.assertTrue(np.allclose(expected_output, result, rtol=1e-6, atol=1e-2)) 253 self.assertTrue(np.allclose(expected_output, result, rtol=1e-6, atol=1e-2)) 273 self.assertTrue(np.allclose(expected_output, result, rtol=1e-6, atol=1e-2)) 277 self.assertTrue(np.allclose(expected_output, result, rtol=1e-6, atol=1e-2))
|
D | bidirectional_sequence_rnn_test.py | 298 self.assertTrue(np.allclose(expected_output, result, rtol=1e-6, atol=1e-2)) 321 self.assertTrue(np.allclose(expected_output, result, rtol=1e-6, atol=1e-2))
|
D | bidirectional_sequence_lstm_test.py | 273 self.assertTrue(np.allclose(expected_output, result, rtol=1e-6, atol=1e-2)) 296 self.assertTrue(np.allclose(expected_output, result, rtol=1e-6, atol=1e-2))
|
/external/tensorflow/tensorflow/python/framework/ |
D | tensor_spec.py | 330 return (tensor_spec_eq and np.allclose(self.minimum, other.minimum) and 331 np.allclose(self.maximum, other.maximum))
|
D | test_util.py | 2590 if not np.allclose(a, b, rtol=rtol, atol=atol):
|
/external/tensorflow/tensorflow/python/keras/tests/ |
D | custom_training_loop_test.py | 139 assert np.allclose(metrics[0], 1.5) 140 assert np.allclose(metrics[1], 1.5)
|
/external/tensorflow/tensorflow/tools/docs/ |
D | tf_doctest_lib.py | 119 return np.allclose(want, got, rtol=rtol, atol=atol)
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | init_ops_test.py | 62 return np.allclose(t1, t2, rtol=1e-15, atol=1e-15) 89 return np.allclose(t1, t2, rtol=1e-15, atol=1e-15) 493 np.allclose(self._Range(0, 2, 0.5), np.array([0, 0.5, 1, 1.5]))) 494 self.assertTrue(np.allclose(self._Range(0, 5, 2.5), np.array([0, 2.5]))) 496 np.allclose(self._Range(0, 3, 0.9), np.array([0, 0.9, 1.8, 2.7]))) 498 np.allclose( 506 np.allclose(self._Range(2.5, 0, -0.5), np.array([2.5, 2, 1.5, 1, 0.5]))) 716 wrong_indices = np.where(~np.allclose(actual, expected)) 718 self.assertTrue(np.allclose(actual, expected), mess)
|
D | candidate_sampler_ops_test.py | 128 if np.allclose(draw(None), draw(None)):
|
/external/tensorflow/tensorflow/python/keras/wrappers/ |
D | scikit_learn_test.py | 70 assert np.allclose(np.sum(proba, axis=1), np.ones(TEST_SAMPLES))
|
/external/tensorflow/tensorflow/python/ops/ |
D | init_ops_v2_test.py | 48 self.assertEqual(assertion, np.allclose(t1, t2, rtol=1e-15, atol=1e-15)) 57 self.assertFalse(np.allclose(t1, t2, rtol=1e-15, atol=1e-15))
|
/external/tensorflow/tensorflow/python/distribute/ |
D | collective_all_reduce_strategy_test.py | 209 np.allclose(x_value, reduced_x_value, atol=1e-5),
|
/external/tensorflow/tensorflow/python/ops/numpy_ops/g3doc/ |
D | TensorFlow_Numpy_Distributed_Image_Classification.ipynb | 386 "assert tnp.allclose(outputs, outputs_loaded)"
|
/external/tensorflow/third_party/py/numpy/tf_numpy_api/ |
D | tensorflow.experimental.numpy.pbtxt | 132 name: "allclose"
|
/external/tensorflow/tensorflow/python/kernel_tests/array_ops/ |
D | scatter_nd_ops_test.py | 371 assert np.allclose(result, expected_result)
|
/external/tensorflow/tensorflow/python/ops/numpy_ops/ |
D | np_math_ops.py | 486 def allclose(a, b, rtol=1e-05, atol=1e-08, equal_nan=False): function
|