Home
last modified time | relevance | path

Searched refs:array_equal (Results 1 – 24 of 24) sorted by relevance

/external/tensorflow/tensorflow/lite/micro/examples/person_detection/utils/
Draw_to_bitmap_test.py98 self.assertTrue(np.array_equal(_RGB_FLAT, frame_list))
102 self.assertTrue(np.array_equal(_GRAYSCALE_FLAT, frame_list))
106 self.assertTrue(np.array_equal(_RGB_RESHAPED, reshaped))
110 self.assertTrue(np.array_equal(_GRAYSCALE_RESHAPED, reshaped))
114 self.assertTrue(np.array_equal(_GRAYSCALE_FLAT_MULTI, frame_list))
116 self.assertTrue(np.array_equal(_GRAYSCALE_RESHAPED_MULTI, reshaped))
/external/tensorflow/tensorflow/compiler/tests/
Dcategorical_op_test.py95 self.assertTrue((not np.array_equal(y, z)) or
96 (not np.array_equal(z, w)) or
97 (not np.array_equal(y, w)))
Drandom_ops_test.py55 self.assertTrue((not np.array_equal(y, z)) or
56 (not np.array_equal(z, w)) or (not np.array_equal(y, w)))
Dstateful_random_ops_test.py289 self.assertFalse(np.array_equal(x, y))
/external/tensorflow/tensorflow/python/data/kernel_tests/
Das_numpy_iterator_test.py89 self.assertTrue(np.array_equal(actual, expected))
/external/tensorflow/tensorflow/python/kernel_tests/random/
Drandom_ops_test.py59 self.assertTrue((not np.array_equal(y, z)) or
60 (not np.array_equal(z, w)) or (not np.array_equal(y, w)))
/external/tensorflow/tensorflow/python/kernel_tests/
Dinit_ops_test.py472 np.array_equal(self._Range(0, 5, 1), np.array([0, 1, 2, 3, 4])))
473 self.assertTrue(np.array_equal(self._Range(0, 5, 2), np.array([0, 2, 4])))
474 self.assertTrue(np.array_equal(self._Range(0, 6, 2), np.array([0, 2, 4])))
476 np.array_equal(self._Range(13, 32, 7), np.array([13, 20, 27])))
478 np.array_equal(
489 self.assertTrue(np.array_equal(self._Range(start, start, 1), []))
504 np.array_equal(self._Range(5, -1, -1), np.array([5, 4, 3, 2, 1, 0])))
508 np.array_equal(self._Range(-5, -10, -3), np.array([-5, -8])))
Dconstant_op_eager_test.py351 np.array_equal(self._Zeros([2, 3]), np.array([[0] * 3] * 2)))
473 self.assertTrue(np.array_equal(self._Ones([2, 3]), np.array([[1] * 3] * 2)))
537 self.assertTrue(np.array_equal(z_value, np.array([[1] * 3] * 2)))
Dsummary_v1_tensor_op_test.py42 self.assertTrue(np.array_equal(actual, expected))
Dconstant_op_test.py404 np.array_equal(self._Zeros([2, 3]), np.array([[0] * 3] * 2)))
608 self.assertTrue(np.array_equal(self._Ones([2, 3]), np.array([[1] * 3] * 2)))
700 self.assertTrue(np.array_equal(z_value, np.array([[1] * 3] * 2)))
Ddepthtospace_op_test.py310 self.assertTrue(np.array_equal(actual_vals, expected_vals))
Dspacetodepth_op_test.py310 self.assertTrue(np.array_equal(actual_vals, expected_vals))
Dgather_nd_op_test.py265 assert np.array_equal(expected_grads, self.evaluate(grads))
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dmake_batched_features_dataset_test.py156 all_equal = all_equal and np.array_equal(batch1[i], batch2[i])
Dmake_csv_dataset_test.py726 all_equal = all_equal and np.array_equal(batch1[i], batch2[i])
/external/tensorflow/tensorflow/python/ops/distributions/
Dtransformed_distribution.py68 return constant_op.constant(np.array_equal(x_, y_))
/external/tensorflow/tensorflow/python/keras/layers/
Dwrappers_test.py224 assert np.array_equal(td.get_weights()[3], np.array([1, 1]))
229 assert not np.array_equal(td.get_weights()[2], np.array([0, 0]))
230 assert not np.array_equal(td.get_weights()[3], np.array([1, 1]))
/external/tensorflow/tensorflow/python/kernel_tests/array_ops/
Dscatter_nd_ops_test.py537 self.assertTrue(np.array_equal(result, expected[0]) or
538 np.array_equal(result, expected[1]))
/external/tensorflow/tensorflow/python/distribute/
Dinput_lib_test.py1603 assert np.array_equal(x.values[0].numpy(), np.array([1, 2, 3, 4, 5]))
1604 assert np.array_equal(x.values[1].numpy(), np.array([6, 7, 8, 9, 10]))
/external/tensorflow/tensorflow/python/framework/
Dtensor_util.py475 if np.array_equal(downcasted_array, nparray):
/external/tensorflow/third_party/py/numpy/tf_numpy_api/
Dtensorflow.experimental.numpy.pbtxt208 name: "array_equal"
/external/tensorflow/tensorflow/python/ops/numpy_ops/
Dnp_math_ops.py1007 def array_equal(a1, a2): # pylint: disable=missing-function-docstring function
/external/tensorflow/tensorflow/python/ops/
Dmath_grad.py157 if np.array_equal(axes, np.arange(rank)): # Reduce all dims.
Dimage_ops_test.py4372 np.array_equal(random_jpeg_images[0], random_jpeg_images[i]))