/external/tensorflow/tensorflow/python/kernel_tests/ |
D | weights_broadcast_test.py | 62 weights=np.asarray((5,)).reshape((1, 1, 1)), 68 weights=np.asarray((5, 7, 11, 3)).reshape((1, 1, 4)), 74 weights=np.asarray((5, 11)).reshape((1, 2, 1)), 80 weights=np.asarray((5, 7, 11, 3, 2, 13, 7, 5)).reshape((1, 2, 4)), 86 weights=np.asarray((5, 7, 11)).reshape((3, 1, 1)), 92 weights=np.asarray(( 99 weights=np.asarray(( 121 self._test_invalid(weights=np.asarray((5,)), values=_test_values((3, 2, 4))) 126 weights=np.asarray((5,)).reshape((1, 1)), 132 weights=np.asarray((5, 7, 11, 3, 2, 12)).reshape((3, 2)), [all …]
|
D | one_hot_op_test.py | 59 indices = np.asarray([0, 2, -1, 1], dtype=np.int64) 61 on_value = np.asarray(1.0, dtype=dtype) 62 off_value = np.asarray(-1.0, dtype=dtype) 64 truth = np.asarray( 89 indices = np.asarray([0, 2, -1, 1], dtype=np.int64) 92 truth = np.asarray( 132 indices = np.asarray([[0, 2, -1, 1], [1, 0, 1, -1]], dtype=np.int64) 134 on_value = np.asarray(1.0, dtype=dtype) 135 off_value = np.asarray(-1.0, dtype=dtype) 137 truth = np.asarray( [all …]
|
D | confusion_matrix_test.py | 63 truth = np.asarray( 124 labels = np.asarray([4, 5, 6], dtype=dtype) 125 predictions = np.asarray([1, 2, 3], dtype=dtype) 127 truth = np.asarray( 148 labels = np.asarray([1, 1, 2, 3, 5, 1, 3, 6, 3, 1], dtype=dtype) 149 predictions = np.asarray([1, 1, 2, 3, 5, 6, 1, 2, 3, 4], dtype=dtype) 151 truth = np.asarray( 177 truth = np.asarray( 190 labels = np.asarray([1, 1, 0, 3, 5], dtype=np.int32) 191 predictions = np.asarray([2, 1, 0, 2, 2], dtype=np.int32) [all …]
|
D | relu_op_test.py | 116 x = np.asarray( 128 x = np.asarray( 138 x = np.asarray( 156 x = np.asarray( 174 x = np.asarray( 202 x = np.asarray([[], []], dtype=np.float32) 252 x = np.asarray( 262 x = np.asarray( 317 x = np.asarray( 327 x = np.asarray( [all …]
|
D | softplus_op_test.py | 35 np_features = np.asarray(np_features) 36 zero = np.asarray(0).astype(np_features.dtype) 82 x_init = np.asarray( 100 x_init = np.asarray( 119 x_init = np.asarray(
|
D | reverse_sequence_op_test.py | 66 x = np.asarray( 74 seq_lengths = np.asarray([3, 0, 4], dtype=len_dtype) 76 truth_orig = np.asarray( 112 x = np.asarray( 122 seq_lengths = np.asarray([3, 0, 4], dtype=np.int64)
|
D | where_op_test.py | 59 x = np.asarray([True, False]) 60 truth = np.asarray([[0]], dtype=np.int64) 63 x = np.asarray([False, True, False]) 64 truth = np.asarray([[1]], dtype=np.int64) 67 x = np.asarray([False, False, True, False, True]) 68 truth = np.asarray([[2], [4]], dtype=np.int64) 77 x = np.asarray([[True, False], [True, False]]) 80 truth = np.asarray([[0, 0], [1, 0]], dtype=np.int64) 85 x = np.asarray([[[True, False], [True, False]], 90 truth = np.asarray(
|
D | draw_bounding_box_op_test.py | 66 color_table = np.asarray([[1, 1, 0, 1], [0, 0, 1, 1], [1, 0, 0, 1], 84 bboxes = np.asarray([0, 0, 1, 1]) 114 colors = np.asarray([[1, 1, 0, 1], [0, 0, 1, 1], [0.5, 0, 0.5, 1], 121 colors = np.asarray([[0.5, 0, 0.5, 1], [0.5, 0.5, 0, 1], [0.5, 0, 0, 1],
|
D | attention_ops_test.py | 225 np.asarray([[0, 0, 0], [0, 0, 0], [0, 0, 0]]), 242 np.asarray([[0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 2, 3, 4, 0], 269 np.asarray([[0, 0, 0], [0, 0, 0], [0, 0, 0]]), 283 np.asarray([[12, 13, 14, 0, 0, 0, 0], [17, 18, 19, 0, 0, 0, 0], 298 np.asarray([[0, 1, 2], [5, 6, 7], [10, 11, 12]]), 301 np.asarray([[5, 6, 7], [10, 11, 12], [15, 16, 17]]),
|
D | ctc_decoder_ops_test.py | 105 input_prob_matrix_0 = np.asarray( 118 input_prob_matrix_1 = np.asarray( 182 input_prob_matrix_0 = np.asarray(
|
/external/tensorflow/tensorflow/python/ops/numpy_ops/ |
D | np_interop_test.py | 89 x = np.asarray(3.0) 90 y = np.asarray(2.0) 105 y = np.asarray(2.0) 108 x = np.asarray(3.0) 117 x = np.asarray(3.0) 137 x = np.asarray(0) 146 arr = np.asarray(0.) 165 arr = np.asarray(10.) 173 arr = np.asarray([10.]) 183 arr = np.asarray([10]) [all …]
|
D | np_array_ops.py | 135 shape = asarray(np_arrays.convert_to_tensor(shape, dtype_hint=np.int32)) 137 fill_value = asarray(fill_value, dtype=dtype) 153 a = asarray(a) 155 fill_value = asarray(fill_value, dtype=dtype) 221 def asarray(a, dtype=None): function 232 return asarray(a, dtype) 286 v = asarray(v) 320 a = asarray(a) 351 v = asarray(v) 377 a = asarray(a, dtype=bool) [all …]
|
D | np_random.py | 82 low = np_array_ops.asarray(low, dtype=dtype) 83 high = np_array_ops.asarray(high, dtype=dtype)
|
/external/tensorflow/tensorflow/python/keras/layers/preprocessing/ |
D | image_preprocessing_test.py | 101 expected_output = np.asarray([ 117 expected_output = np.asarray([ 539 expected_output = np.asarray([ 559 expected_output = np.asarray([ 579 expected_output = np.asarray([ 599 expected_output = np.asarray([ 622 expected_output = np.asarray([ 642 expected_output = np.asarray([ 662 expected_output = np.asarray([ 715 expected_output = np.asarray( [all …]
|
D | category_crossing_test.py | 52 self.assertAllClose(np.asarray([[0, 0], [1, 0], [1, 1]]), output.indices) 64 self.assertAllClose(np.asarray([[0, 0], [1, 0], [1, 1]]), output.indices) 76 self.assertAllClose(np.asarray([[0, 0], [1, 0], [1, 1]]), output.indices) 177 inputs_0 = np.asarray([[1, 2]]) 178 inputs_1 = np.asarray([[1, 3]]) 194 inputs_0 = np.asarray([1, 2]) 195 inputs_1 = np.asarray([1, 3])
|
D | hashing_test.py | 42 inp = np.asarray([['A'], ['B'], ['C'], ['D'], ['E']]) 48 inp = np.asarray([['omar'], ['stringer'], ['marlo'], ['wire'], 57 inp = np.asarray([['omar'], ['stringer'], ['marlo'], ['wire'], 81 inp = np.asarray([[0], [1], [2], [3], [4]]) 88 inp = np.asarray([['omar'], ['stringer'], ['marlo'], ['wire'], 102 inp = np.asarray([[0], [1], [2], [3], [4]])
|
/external/tensorflow/tensorflow/python/keras/ |
D | metrics_correctness_test.py | 51 inputs = np.asarray([[1.], [2.], [3.], [4.], [5.]]) 52 targets_1 = np.asarray([[2.], [4.], [6.], [8.], [10.]]) 53 targets_2 = np.asarray([[1.], [2.], [3.], [4.], [5.]]) 87 self.x = np.asarray([[1.], [2.], [3.], [4.], [5.]]) 88 self.y1 = np.asarray([[2.], [4.], [6.], [8.], [10.]]) 89 self.y2 = np.asarray([[1.], [2.], [3.], [4.], [5.]]) 90 self.sample_weight_1 = np.asarray([2., 3., 4., 5., 6.]) 91 self.sample_weight_2 = np.asarray([3.5, 2.5, 1.5, 0.5, 3.]) 368 x = np.asarray([[1.], [2.], [3.], [4.]]) 369 y = np.asarray([[2.], [4.], [6.], [8.]]) [all …]
|
D | metrics_test.py | 618 self.np_y_true = np.asarray([[1, 9, 2], [-5, -2, 6]], dtype=np.float32) 619 self.np_y_pred = np.asarray([[4, 8, 12], [8, 1, 3]], dtype=np.float32) 651 sample_weight = np.asarray([1.2, 3.4]) 1113 y_pred = np.asarray([1, 9, 2, -5, -2, 6]).reshape((2, 3)) 1114 y_true = np.asarray([4, 8, 12, 8, 1, 3]).reshape((2, 3)) 1146 sample_weight = np.asarray([1.2, 1.2, 1.2, 3.4, 3.4, 3.4]).reshape((2, 3)) 1156 y_pred = np.asarray([1, 9, 2, 5, 2, 6]).reshape((2, 3)) 1157 y_true = np.asarray([4, 8, 12, 8, 1, 3]).reshape((2, 3)) 1192 sample_weight = np.asarray([1.2, 1.2, 1.2, 3.4, 3.4, 3.4]).reshape((2, 3)) 1202 y_pred = np.asarray([.4, .9, .12, .36, .3, .4]).reshape((2, 3)) [all …]
|
D | losses_test.py | 657 self.np_y_true = np.asarray([[1, 9, 2], [-5, -2, 6]], dtype=np.float32) 658 self.np_y_pred = np.asarray([[4, 8, 12], [8, 1, 3]], dtype=np.float32) 691 sample_weight = np.asarray([1.2, 3.4]) 704 sample_weight = np.asarray([3, 6, 5, 0, 4, 2]).reshape((2, 3)) 757 y_true = np.asarray([1, 0, 1, 0]).reshape([2, 2]) 758 y_pred = np.asarray([1, 1, 1, 0], dtype=np.float32).reshape([2, 2]) 796 y_true = np.asarray([1, 0, 1, 0]).reshape([2, 2]) 797 y_pred = np.asarray([1, 1, 1, 0], dtype=np.float32).reshape([2, 2]) 830 y_true = np.asarray([1, 0, 1, 0]).reshape([2, 2]) 831 y_pred = np.asarray([1, 1, 1, 0], dtype=np.float32).reshape([2, 2]) [all …]
|
/external/tensorflow/tensorflow/compiler/tests/ |
D | reverse_sequence_op_test.py | 62 x = np.asarray( 70 seq_lengths = np.asarray([3, 0, 4], dtype=len_dtype) 72 truth_orig = np.asarray(
|
D | categorical_op_test.py | 44 actual = np.asarray(actual) 45 expected = np.asarray(expected) 127 probs = np.asarray(probs)
|
/external/tensorflow/tensorflow/lite/tools/optimize/sparsity/python/ |
D | format_converter_extension_test.py | 50 converter.DenseToSparse(np.asarray(dense_matrix, dtype=np.float32).data) 69 converter.SparseToDense(np.asarray(sparse_data, dtype=np.float32).data)
|
/external/tensorflow/tensorflow/python/framework/ |
D | test_util_test.py | 408 np.asarray([1e-8], dtype=np.float64), 409 np.asarray([2e-8], dtype=np.float64), 421 np.asarray([1e-7], dtype=np.float64), 422 np.asarray([2e-7], dtype=np.float64), 428 np.asarray([1e-7], dtype=np.float32), 429 np.asarray([2e-7], dtype=np.float32), 444 np.asarray([1e-6], dtype=np.float32), 445 np.asarray([2e-6], dtype=np.float32), 452 np.asarray([1e-4], dtype=np.float16), 453 np.asarray([2e-4], dtype=np.float16), [all …]
|
/external/tensorflow/tensorflow/python/eager/ |
D | tensor_test.py | 122 numpy_tensor = np.asarray(tensor, dtype=np.int32) 126 numpy_tensor = np.asarray(1.0) 130 numpy_tensor = np.asarray([1.0, 2.0, 3.0]) 134 numpy_tensor = np.asarray([[1.0, 2.0, 3.0], [1.0, 2.0, 3.0]]) 139 numpy_tensor = np.asarray(1.0) 146 numpy_tensor = np.asarray([1.0, 2.0, 3.0]) 150 numpy_tensor = np.asarray([[1.0, 2.0, 3.0], [1.0, 2.0, 3.0]]) 394 np.asarray(memoryview(v._handle))
|
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/ |
D | directed_interleave_dataset_test.py | 57 actual = np.asarray(actual) 58 expected = np.asarray(expected) 91 probs = np.asarray(probs)
|