Home
last modified time | relevance | path

Searched refs:allclose (Results 1 – 20 of 20) sorted by relevance

/external/python/pybind11/tests/
Dtest_numpy_vectorize.py19 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)
Dtest_sequences_and_iterators.py12 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/
Dformat_converter_extension_test.py67 self.assertTrue(np.allclose(expected_data, sparse_data))
70 self.assertTrue(np.allclose(dense_matrix, converter.GetData()))
/external/tensorflow/tensorflow/lite/experimental/examples/lstm/
Dunidirectional_sequence_lstm_test.py258 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))
Dunidirectional_sequence_rnn_test.py249 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))
Dbidirectional_sequence_rnn_test.py298 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))
Dbidirectional_sequence_lstm_test.py273 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/
Dtensor_spec.py330 return (tensor_spec_eq and np.allclose(self.minimum, other.minimum) and
331 np.allclose(self.maximum, other.maximum))
Dtest_util.py2590 if not np.allclose(a, b, rtol=rtol, atol=atol):
/external/tensorflow/tensorflow/python/keras/tests/
Dcustom_training_loop_test.py139 assert np.allclose(metrics[0], 1.5)
140 assert np.allclose(metrics[1], 1.5)
/external/tensorflow/tensorflow/tools/docs/
Dtf_doctest_lib.py119 return np.allclose(want, got, rtol=rtol, atol=atol)
/external/tensorflow/tensorflow/python/kernel_tests/
Dinit_ops_test.py62 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)
Dcandidate_sampler_ops_test.py128 if np.allclose(draw(None), draw(None)):
/external/tensorflow/tensorflow/python/keras/wrappers/
Dscikit_learn_test.py70 assert np.allclose(np.sum(proba, axis=1), np.ones(TEST_SAMPLES))
/external/tensorflow/tensorflow/python/ops/
Dinit_ops_v2_test.py48 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/
Dcollective_all_reduce_strategy_test.py209 np.allclose(x_value, reduced_x_value, atol=1e-5),
/external/tensorflow/tensorflow/python/ops/numpy_ops/g3doc/
DTensorFlow_Numpy_Distributed_Image_Classification.ipynb386 "assert tnp.allclose(outputs, outputs_loaded)"
/external/tensorflow/third_party/py/numpy/tf_numpy_api/
Dtensorflow.experimental.numpy.pbtxt132 name: "allclose"
/external/tensorflow/tensorflow/python/kernel_tests/array_ops/
Dscatter_nd_ops_test.py371 assert np.allclose(result, expected_result)
/external/tensorflow/tensorflow/python/ops/numpy_ops/
Dnp_math_ops.py486 def allclose(a, b, rtol=1e-05, atol=1e-08, equal_nan=False): function