Home
last modified time | relevance | path

Searched refs:rand_num (Results 1 – 7 of 7) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/data/
Drandom_choice_op.cc80 size_t rand_num = rand_int_(gen_); in Compute() local
81 …CHECK_FAIL_RETURN_UNEXPECTED(rand_num < ops_.size(), "invalid rand_num:" + std::to_string(rand_num in Compute()
82 RETURN_IF_NOT_OK(ops_[rand_num]->Compute(input, output)); in Compute()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/
Drandom_select_subpolicy_op.cc27 size_t rand_num = rand_int_(gen_); in Compute() local
28 CHECK_FAIL_RETURN_UNEXPECTED(rand_num < policy_.size(), in Compute()
31 std::to_string(rand_num)); in Compute()
32 for (auto &sub : policy_[rand_num]) { in Compute()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Drcwm_small_impl.cu89 T rand_num = input[i] ? __uint2float_rn(curand(&devState)) : init_K; in L2Rcwm() local
90 LEFT_INSERT_THREAD_QUEUE(rand_num, i); in L2Rcwm()
109 T rand_num = input[i] ? __uint2float_rn(curand(&devState)) : init_K; in L2Rcwm() local
110 LEFT_INSERT_THREAD_QUEUE(rand_num, i); in L2Rcwm()
/third_party/boost/libs/graph/test/
Drandom_matching_test.cpp54 rand_num(generator, distribution); in main() local
61 vertex_descriptor_t u = random_vertex(g, rand_num); in main()
62 vertex_descriptor_t v = random_vertex(g, rand_num); in main()
Dmatching_test.cpp315 rand_num(generator, distribution); in matching_test() local
322 vertex_descriptor_t u = random_vertex(j, rand_num); in matching_test()
323 vertex_descriptor_t v = random_vertex(j, rand_num); in matching_test()
/third_party/ltp/utils/benchmark/ebizzy-0.3/
Debizzy.c351 static inline unsigned int rand_num(unsigned int max, unsigned int *state) in rand_num() function
379 chunk = rand_num(chunks, &state); in search_mem()
386 copy_size = (rand_num(chunk_size / record_size, &state) in search_mem()
399 key = rand_num(copy_size / record_size, &state); in search_mem()
/third_party/e2fsprogs/misc/
De2fuzz.c167 static uint64_t rand_num(uint64_t min, uint64_t max) in rand_num() function
269 count = rand_num(0, corrupt_bytes / 100); in process_fs()
273 off = rand_num(offset, hsize); in process_fs()