/external/ltp/testcases/network/nfsv4/acl/ |
D | random_gen.py | 32 group = self.gList[random.randint(0,len(self.gList)-1)][0] 154 l=random.randint(0,maxlength) 156 a = random.randint(0,a_length-1) 164 a = random.randint(0,a_length-1) 178 type = ace_type[random.randint(0,len(ace_type))] 179 flag = ace_flags[random.randint(0,len(ace_flags))] 180 mask = ace_mask[random.randint(0,len(ace_mask))] 181 who = ace_who[random.randint(0,len(ace_who))] 190 n = random.randint(0,userListSize-1) 200 if random.randint(0,1) == 1: [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | bincount_op_test.py | 90 arr = np.random.randint(0, 1000, num_samples) 92 weights = np.random.randint(-100, 100, num_samples) 104 arr = np.random.randint(0, 1000, num_samples) 152 inp = np.random.randint(0, size, (4096), dtype=dtype) 168 inp = np.random.randint(0, size, (4096,), dtype=dtype) 186 inp = np.random.randint(0, size, (4096), dtype=dtype) 203 inp = np.random.randint(0, size, (4096,), dtype=dtype) 215 inp = np.random.randint(0, size, (num_rows, num_cols), dtype=dtype) 228 inp = np.random.randint(0, size, (num_rows, num_cols), dtype=dtype) 245 inp = np.random.randint(0, size, (num_rows, num_cols), dtype=dtype) [all …]
|
D | priority_queue_test.py | 45 elem = np.random.randint(-5, 5, size=100).astype(np.int64) 79 elem = np.random.randint(-5, 5, size=100).astype(np.int64) 129 enqueue_counts = np.random.randint(10, size=num_threads) 131 np.random.randint( 182 enqueue_counts = np.random.randint(10, size=num_threads) 184 np.random.randint( 240 elem = np.random.randint(-5, 5, size=100).astype(np.int64) 289 elem = np.random.randint(-100, 100, size=1000).astype(np.int64) 309 elem = np.random.randint(-100, 100, size=1000).astype(np.int64) 317 elem = np.random.randint(-100, 100, size=1000).astype(np.int64)
|
D | manip_ops_test.py | 68 self._testAll(np.random.randint(-100, 100, (5)).astype(t), 3, 0) 71 np.random.randint(-100, 100, (4, 4, 3)).astype(t), [1, -2, 3], 74 np.random.randint(-100, 100, (4, 2, 1, 3)).astype(t), [0, 1, -2], 98 self._testAll(np.random.randint(-100, 100, (5)).astype(np.int32), 3, -1) 99 self._testAll(np.random.randint(-100, 100, (4, 4)).astype(np.int32), 3, -2) 104 manip_ops.roll(np.random.randint(-100, 100, (4, 4)).astype(np.int32),
|
D | split_op_test.py | 129 shape = np.random.randint(1, 5, size=5) 130 split_dim = np.random.randint(-5, 5) 132 num_split = np.random.randint(16, 25) 134 num_split = np.random.randint(2, 8) 135 size_splits = np.random.randint(2, 8, num_split, dtype=np.int32) 160 size_splits = np.random.randint(1, 3, num_split, dtype=np.int32) 287 shape = np.random.randint(0, 5, size=5) 288 split_dim = np.random.randint(-5, 5) 290 num_split = np.random.randint(9, 15) 292 num_split = np.random.randint(2, 8) [all …]
|
D | listdiff_op_test.py | 90 x_size = np.random.randint(max_size + 1) 91 x = np.random.randint(int_low, int_high, size=x_size) 92 y_size = np.random.randint(max_size + 1) 93 y = np.random.randint(int_low, int_high, size=y_size)
|
D | sparse_matmul_op_test.py | 34 rand_func = np.random.randint if round_bfloat else np.random.uniform 102 r1 = np.random.randint(6000, 20000) 103 r2 = np.random.randint(1, 10) 104 r3 = np.random.randint(1, 10) 121 n, k, m = np.random.randint(1, 100, size=3)
|
D | softmax_op_test.py | 143 rows = [2**x + np.random.randint(0, 16) for x in range(1, 4)] 144 cols = [2**x + np.random.randint(0, 16) for x in range(1, 4)] 158 rows = [2**x + np.random.randint(0, 16) for x in range(1, 4)] 159 cols = [2**x + np.random.randint(0, 16) for x in range(1, 4)] 174 rows = [2**x + np.random.randint(0, 16) for x in range(1, 4)] 175 cols = [2**x + np.random.randint(0, 16) for x in range(1, 4)]
|
D | lrn_op_test.py | 60 shape = np.random.randint(1, 16, size=4) 66 lrn_depth_radius = np.random.randint(1, min(8, shape[3])) 121 shape = np.random.randint(1, 5, size=4) 126 lrn_depth_radius = np.random.randint(1, min(8, shape[3]))
|
D | base64_ops_test.py | 78 length = np.random.randint(1024 * 1024) 85 msg = [np.random.bytes(np.random.randint(20)) 86 for _ in range(np.random.randint(10))] 91 k = np.random.randint(10)
|
/external/llvm-project/lld/test/MachO/tools/ |
D | generate-cfi-funcs.py | 25 frame_size = random.randint(4, 64) * 16 26 frame_offset = -random.randint(0, (frame_size/16 - 4)) * 16 27 reg_count = random.randint(0, 4) 28 reg_combo = random.randint(0, factorial(reg_count) - 1) 31 func_size = random.randint(func_size_low, func_size_high) * 0x10
|
/external/toolchain-utils/bestflags/ |
D | flags_test.py | 33 start = random.randint(1, sys.maxint - 1) 34 end = random.randint(start + 1, sys.maxint) 73 start = random.randint(1, sys.maxint - 1) 74 end = random.randint(start + 1, sys.maxint) 75 value = random.randint(start, end - 1) 89 value = random.randint(1, sys.maxint - 1)
|
D | task_test.py | 84 identifier = random.randint(-sys.maxint - 1, -1) 126 result = tuple([random.randint(0, RANDOM_BUILD_RESULT) for _ in range(5)]) 137 random_test_result = random.randint(0, RANDOM_TESTRESULT) 161 result = tuple([random.randint(0, RANDOM_BUILD_RESULT) for _ in range(5)]) 168 work_task.SetResult(task.TEST_STAGE, random.randint(0, RANDOM_TESTRESULT))
|
D | genetic_algorithm.py | 35 return first_flag if random.randint(0, 1) else second_flag 54 if random.randint(0, int(1 / mutation_rate)): 130 output_flags = [father_flags[f] for f in self_flags if random.randint(0, 1)] 131 others = [mother_flags[f] for f in other_flags if random.randint(0, 1)]
|
/external/python/pybind11/docs/ |
D | benchmark.py | 24 ret = random.randint(0, nclasses - 1) 25 params = [random.randint(0, nclasses - 1) for i in range(nargs)] 55 ret = random.randint(0, nclasses - 1) 56 params = [random.randint(0, nclasses - 1) for i in range(nargs)]
|
/external/webrtc/rtc_tools/py_event_log_analyzer/ |
D | misc_test.py | 43 random_data = [random.randint(0, 9) for _ in range(100)] 54 random_data = [random.randint(0, 9) for _ in range(100)] 64 random_data = [random.randint(0, 9) for _ in range(100)]
|
/external/bcc/tests/python/ |
D | test_histogram.py | 24 for j in range(0, random.randint(1, 10)): 30 for j in range(0, random.randint(1, 10)): 50 for j in range(0, random.randint(1, 10)):
|
/external/tensorflow/tensorflow/examples/speech_commands/ |
D | generate_streaming_test_wav.py | 116 background_index = np.random.randint(len(audio_processor.background_data)) 118 background_offset = np.random.randint( 139 int(i * word_stride_samples) + np.random.randint(word_gap_samples)) 141 is_unknown = np.random.randint(100) < FLAGS.unknown_percentage 145 wanted_label = words_list[2 + np.random.randint(len(words_list) - 2)] 146 test_data_start = np.random.randint(len(all_test_data))
|
/external/tensorflow/tensorflow/compiler/tests/ |
D | listdiff_op_test.py | 69 x_size = np.random.randint(max_size + 1) 70 x = np.random.randint(int_low, int_high, size=x_size) 71 y_size = np.random.randint(max_size + 1) 72 y = np.random.randint(int_low, int_high, size=y_size)
|
D | manip_ops_test.py | 43 self._testRoll(np.random.randint(-100, 100, (5)).astype(t), 3, 0) 45 np.random.randint(-100, 100, (4, 4, 3)).astype(t), [1, -6, 6], 48 np.random.randint(-100, 100, (4, 2, 1, 3)).astype(t), [0, 1, -2],
|
/external/autotest/client/site_tests/audio_CrasStress/ |
D | audio_CrasStress.py | 52 cmd += ['--rate', self._RATES[random.randint(0, 1)], 53 '--block_size', self._BLOCK_SIZES[random.randint(0, 1)]] 103 add = random.randint(0, 1) 111 stream_type = random.randint(0, 1)
|
/external/python/rsa/tests/ |
D | test_prime.py | 56 orig_randint = rsa.randnum.randint 57 rsa.randnum.randint = fake_randint 74 rsa.randnum.randint = orig_randint
|
/external/tensorflow/tensorflow/python/keras/engine/ |
D | feature_columns_integration_test.py | 67 y = np.random.randint(20, size=(10, 1)) 88 y = np.random.randint(20, size=(100, 1)) 125 age_data = np.random.randint(10, 100, size=100) 128 inp_y = np.random.randint(0, 1, size=100) 152 y = np.random.randint(20, size=(10, 1)) 172 y = np.random.randint(20, size=(100, 1)) 286 y = np.random.randint(2, size=(1024, 1))
|
/external/tensorflow/tensorflow/python/ops/ |
D | sort_ops_test.py | 48 rank = np.random.randint(1, 3) 49 shape = [np.random.randint(0, 20) for _ in range(rank)] 63 rank = np.random.randint(5, 15) 64 shape = [np.random.randint(1, 4) for _ in range(rank)]
|
D | bincount_ops_test.py | 528 inp_indices = np.random.randint(0, num_rows, (n_elems, 1)) 530 inp_vals = np.random.randint(0, size, (n_elems,), dtype=dtype) 548 inp_indices = np.random.randint(0, num_rows, (n_elems, 1)) 550 inp_vals = np.random.randint(0, size, (n_elems,), dtype=dtype) 573 inp_indices = np.random.randint(0, num_rows, (n_elems, 1)) 575 inp_vals = np.random.randint(0, size, (n_elems,), dtype=dtype) 594 inp = np.random.randint(0, size, (num_rows, num_cols), dtype=dtype) 620 inp = np.random.randint(0, size, (num_rows, num_cols), dtype=dtype) 710 inp = np.random.randint(0, size, (num_rows, num_cols), dtype=dtype) 730 inp = np.random.randint(0, size, (num_rows, num_cols), dtype=dtype)
|