/external/python/cpython2/Lib/test/ |
D | test_xrange.py | 72 self.assertEqual(list(xrange(3)), [0, 1, 2]) 73 self.assertEqual(list(xrange(1, 5)), [1, 2, 3, 4]) 74 self.assertEqual(list(xrange(0)), []) 75 self.assertEqual(list(xrange(-3)), []) 76 self.assertEqual(list(xrange(1, 10, 3)), [1, 4, 7]) 77 self.assertEqual(list(xrange(5, -5, -3)), [5, 2, -1, -4]) 83 self.assertEqual(list(xrange(a, a+2)), [a, a+1]) 84 self.assertEqual(list(xrange(a+2, a, -1L)), [a+2, a+1]) 85 self.assertEqual(list(xrange(a+4, a, -2)), [a+4, a+2]) 87 seq = list(xrange(a, b, c)) [all …]
|
D | test_deque.py | 32 d = deque(xrange(-5125, -5000)) 33 d.__init__(xrange(200)) 34 for i in xrange(200, 400): 36 for i in reversed(xrange(-200, 0)): 41 left = [d.popleft() for i in xrange(250)] 45 right = [d.pop() for i in xrange(250)] 67 d = deque(xrange(200), maxlen=10) 196 d = deque(xrange(n)) 198 for i in xrange(n): 204 for j in xrange(1-len(l), len(l)): [all …]
|
D | test_iterlen.py | 67 for i in reversed(xrange(1, n+1)): 102 self.it = iter(xrange(n)) 107 self.it = reversed(xrange(n)) 112 self.it = iter(tuple(xrange(n))) 119 d = deque(xrange(n)) 126 d = deque(xrange(n)) 133 d = dict.fromkeys(xrange(n)) 140 d = dict.fromkeys(xrange(n)) 147 d = dict.fromkeys(xrange(n)) 154 d = set(xrange(n)) [all …]
|
D | test_random.py | 17 return [self.gen.random() for i in xrange(n)] 70 population = xrange(N) 71 for k in xrange(N+1): 86 return reduce(int.__mul__, xrange(1, n), 1) 87 for k in xrange(n): 90 for i in xrange(trials): 101 self.gen.sample(xrange(20), 2) 116 d = dict((i, complex(i, i)) for i in xrange(N)) 117 for k in xrange(N+1): 145 origseq = [self.gen.random() for i in xrange(10)] [all …]
|
D | test_strtod.py | 116 for i in xrange(TEST_SIZE): 152 for i in xrange(100 * TEST_SIZE): 187 for j in xrange(1000): 200 for exponent in xrange(-400, -320): 202 for j in xrange(TEST_SIZE): 210 for i in xrange(10 * TEST_SIZE): 223 for i in xrange(1000): 224 for j in xrange(TEST_SIZE): 227 s += ''.join(random.choice(digits) for _ in xrange(intpart_len)) 232 for _ in xrange(fracpart_len)) [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | conv2d_transpose_test.py | 22 from six.moves import xrange # pylint: disable=redefined-builtin 63 for n in xrange(x_shape[0]): 64 for k in xrange(f_shape[2]): 65 for w in xrange(y_shape[2]): 66 for h in xrange(y_shape[1]): 95 for n in xrange(x_shape[0]): 96 for k in xrange(f_shape[2]): 97 for w in xrange(y_shape[2]): 98 for h in xrange(y_shape[1]): 133 for n in xrange(x_shape[0]): [all …]
|
D | conv3d_transpose_test.py | 22 from six.moves import xrange # pylint: disable=redefined-builtin 66 for n in xrange(x_shape[0]): 67 for k in xrange(f_shape[3]): 68 for w in xrange(y_shape[3]): 69 for h in xrange(y_shape[2]): 70 for d in xrange(y_shape[1]): 103 for n in xrange(x_shape[0]): 104 for k in xrange(f_shape[3]): 105 for w in xrange(y_shape[3]): 106 for h in xrange(y_shape[2]): [all …]
|
D | reduce_join_op_test.py | 24 from six.moves import xrange # pylint: disable=redefined-builtin 43 strings = [formatter.format(i) for i in xrange(2**num_dims)] 60 for i in xrange(2**(num_dims - 1)): 63 for j in xrange(2)]) 80 truth = ["{:03b}".format(i) for i in xrange(2**num_dims)] 211 truths = [_joined_array(num_dims=5, reduce_dim=i) for i in xrange(5)] 213 for i in xrange(5): 219 truths = [_joined_array(num_dims=5, reduce_dim=i) for i in xrange(5)] 221 for i in xrange(5): 228 for i in xrange(6) [all …]
|
D | fft_ops_test.py | 22 from six.moves import xrange # pylint: disable=redefined-builtin 159 for dims in xrange(rank, rank + 3): 167 for dims in xrange(rank, rank + 3): 175 for dims in xrange(rank, rank + 3): 193 for dims in xrange(rank, rank + 3): 211 for dims in xrange(rank, rank + 3): 216 for dims in xrange(0, rank): 228 for dims in xrange(rank, rank + 2): 238 for dims in xrange(rank, rank + 2): 302 for dims in xrange(rank, rank + 3): [all …]
|
/external/python/cpython2/Tools/pybench/ |
D | Numbers.py | 11 for i in xrange(self.rounds): 195 for i in xrange(self.rounds): 207 for i in xrange(self.rounds): 391 for i in xrange(self.rounds): 403 for i in xrange(self.rounds): 587 for i in xrange(self.rounds): 599 for i in xrange(self.rounds): 783 for i in xrange(self.rounds):
|
D | Lists.py | 14 for i in xrange(self.rounds): 130 for i in xrange(self.rounds): 144 for i in xrange(self.rounds): 163 for i in xrange(self.rounds): 175 for i in xrange(self.rounds): 294 for i in xrange(self.rounds): 307 for i in xrange(self.rounds): 320 for i in xrange(self.rounds): 334 for i in xrange(self.rounds): 349 for i in xrange(self.rounds):
|
D | Imports.py | 15 for i in xrange(self.rounds): 48 for i in xrange(self.rounds): 60 for i in xrange(self.rounds): 93 for i in xrange(self.rounds): 104 for i in xrange(self.rounds): 137 for i in xrange(self.rounds):
|
D | Dict.py | 11 for i in xrange(self.rounds): 75 for i in xrange(self.rounds): 88 for i in xrange(self.rounds): 164 for i in xrange(self.rounds): 177 for i in xrange(self.rounds): 253 for i in xrange(self.rounds): 266 for i in xrange(self.rounds): 342 for i in xrange(self.rounds): 356 for i in xrange(self.rounds): 503 for i in xrange(self.rounds):
|
D | Strings.py | 16 for i in xrange(self.rounds): 82 for i in xrange(self.rounds): 98 for i in xrange(self.rounds): 164 for i in xrange(self.rounds): 180 for i in xrange(self.rounds): 246 for i in xrange(self.rounds): 258 for i in xrange(self.rounds): 321 for i in xrange(self.rounds): 335 for i in xrange(self.rounds): 381 for i in xrange(self.rounds): [all …]
|
D | With.py | 20 for i in xrange(self.rounds): 46 for i in xrange(self.rounds): 68 for i in xrange(self.rounds): 153 for i in xrange(self.rounds): 174 for i in xrange(self.rounds): 189 for i in xrange(self.rounds):
|
D | Exceptions.py | 13 for i in xrange(self.rounds): 51 for i in xrange(self.rounds): 63 for i in xrange(self.rounds): 690 for i in xrange(self.rounds):
|
D | Unicode.py | 21 for i in xrange(self.rounds): 87 for i in xrange(self.rounds): 103 for i in xrange(self.rounds): 169 for i in xrange(self.rounds): 181 for i in xrange(self.rounds): 244 for i in xrange(self.rounds): 258 for i in xrange(self.rounds): 304 for i in xrange(self.rounds): 322 for i in xrange(self.rounds): 379 for i in xrange(self.rounds): [all …]
|
/external/tensorflow/tensorflow/compiler/tests/ |
D | conv3d_test.py | 22 from six.moves import xrange # pylint: disable=redefined-builtin 103 for n in xrange(x_shape[0]): 104 for k in xrange(f_shape[3]): 105 for w in xrange(y_shape[3]): 106 for h in xrange(y_shape[2]): 107 for d in xrange(y_shape[1]): 140 for n in xrange(x_shape[0]): 141 for k in xrange(f_shape[3]): 142 for w in xrange(y_shape[3]): 143 for h in xrange(y_shape[2]): [all …]
|
/external/autotest/client/cros/audio/ |
D | audio_quality_measurement_unittest.py | 30 for index in xrange(0, rate * length_in_secs): 56 for i in xrange( len(value1) ): 72 for index in xrange(self.samples): 81 for index in xrange(self.samples): 91 for i in xrange(len(self.delay_start_time)): 94 for j in xrange(start_index,end_index): 102 for i in xrange(0, end_index): 106 for i in xrange(noise_start_index, noise_end_index): 116 for i in xrange(silence_after_playback_start_time, self.samples): 118 for i in xrange(noise_start_index, noise_end_index): [all …]
|
/external/chromium-trace/catapult/devil/devil/utils/ |
D | parallelizer_test.py | 93 devices = [ParallelizerTestObject(True) for _ in xrange(0, 10)] 99 devices = [ParallelizerTestObject(True) for _ in xrange(0, 10)] 108 for i in xrange(0, 10)] 120 for _ in xrange(0, parallel_device_count)] 125 for i in xrange(0, parallel_device_count)] 132 for i in xrange(0, parallel_device_count): 143 devices = [ParallelizerTestObject(True) for _ in xrange(0, 10)] 153 devices = [ParallelizerTestObject(i) for i in xrange(0, 10)] 158 for i in xrange(0, 10): 162 devices = [ParallelizerTestObject(range(i, i + 10)) for i in xrange(0, 10)] [all …]
|
/external/libmojo/third_party/catapult/devil/devil/utils/ |
D | parallelizer_test.py | 86 devices = [ParallelizerTestObject(True) for _ in xrange(0, 10)] 92 devices = [ParallelizerTestObject(True) for _ in xrange(0, 10)] 101 for i in xrange(0, 10)] 113 for _ in xrange(0, parallel_device_count)] 118 for i in xrange(0, parallel_device_count)] 125 for i in xrange(0, parallel_device_count): 136 devices = [ParallelizerTestObject(True) for _ in xrange(0, 10)] 146 devices = [ParallelizerTestObject(i) for i in xrange(0, 10)] 151 for i in xrange(0, 10): 155 devices = [ParallelizerTestObject(range(i, i + 10)) for i in xrange(0, 10)]
|
/external/python/cpython2/Tools/iobench/ |
D | iobench.py | 20 xrange 22 xrange = range variable 105 for i in xrange(0, size - 1): 115 for i in xrange(0, size - 1, 1000): 139 for i in xrange(0, len(source)): 146 for i in xrange(0, len(source), 20): 153 for i in xrange(0, len(source), 4096): 160 for i in xrange(0, len(source), 1000000): 169 for i in xrange(0, len(source)): 177 for i in xrange(0, len(source), 20): [all …]
|
/external/python/cpython3/Tools/iobench/ |
D | iobench.py | 19 xrange 21 xrange = range variable 106 for i in xrange(0, size - 1): 116 for i in xrange(0, size - 1, 1000): 140 for i in xrange(0, len(source)): 147 for i in xrange(0, len(source), 20): 154 for i in xrange(0, len(source), 4096): 161 for i in xrange(0, len(source), 1000000): 170 for i in xrange(0, len(source)): 178 for i in xrange(0, len(source), 20): [all …]
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_RangeDataset.pbtxt | 6 corresponds to start in python's xrange(). 12 corresponds to stop in python's xrange(). 18 corresponds to step in python's xrange(). 21 summary: "Creates a dataset with a range of values. Corresponds to python\'s xrange."
|
/external/tensorflow/tensorflow/contrib/tpu/python/tpu/ |
D | device_assignment.py | 23 from six.moves import xrange # pylint: disable=redefined-builtin 98 for task in xrange(topology.device_coordinates.shape[0]): 99 for device in xrange(topology.device_coordinates.shape[1]): 109 for replica in xrange(core_assignment.shape[0]): 110 for dx in xrange(core_assignment.shape[1]): 111 for dy in xrange(core_assignment.shape[2]): 112 for dz in xrange(core_assignment.shape[3]): 331 for replica in xrange(num_replicas): 347 computation_stride[i]) for i in xrange(topology_rank)
|