Searched refs:Rand32 (Results 1 – 13 of 13) sorted by relevance
/external/tensorflow/tensorflow/core/lib/random/ |
D | simple_philox.cc | 24 return ExactUniformInt<uint32>(n, [this]() { return Rand32(); }); in Uniform() 33 const int shift = Rand32() % (max_log + 1); in Skewed() 35 return Rand32() & mask; in Skewed()
|
D | simple_philox_test.cc | 50 if (gen1->Rand32() != gen2->Rand32()) { in DifferenceTest() 82 uint32 v = gen1.Rand32(); in TEST() 85 all.insert(gen2.Rand32()); in TEST()
|
D | weighted_picker.cc | 56 return r->Rand32() * n; in UnbiasedUniform() 59 return r->Rand32() & (n - 1); in UnbiasedUniform() 76 rnd = r->Rand32(); // rnd uniform over [0, 2^{32}) in UnbiasedUniform()
|
D | simple_philox.h | 36 PHILOX_DEVICE_INLINE uint32 Rand32() { return single_(); } in Rand32() function
|
/external/tensorflow/tensorflow/core/util/ |
D | example_proto_fast_parsing_test.cc | 329 auto len = 1 + rng->Rand32() % 200; in RandStr() 334 key_char_lookup[rng->Rand32() % (sizeof(key_char_lookup) / in RandStr() 342 auto num_keys = 1 + rng->Rand32() % 100; in Fuzz() 351 auto num_concats = 1 + rng->Rand32() % 4; in Fuzz() 357 auto num_active_keys = 1 + rng->Rand32() % all_keys.size(); in Fuzz() 361 auto fkey = all_keys[rng->Rand32() % all_keys.size()]; in Fuzz() 362 auto ftype_idx = rng->Rand32() % feat_types.size(); in Fuzz() 363 auto num_features = 1 + rng->Rand32() % 5; in Fuzz()
|
/external/tensorflow/tensorflow/core/graph/ |
D | tensor_id_test.cc | 38 const uint32 space = 1 << (rnd->Rand32() % (max_log + 1)); in Skewed() 39 return rnd->Rand32() % space; in Skewed()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | random_crop_op.cc | 87 offset_width = random.Rand32() % (width - target_width + 1); in Compute() 90 offset_height = random.Rand32() % (height - target_height + 1); in Compute()
|
/external/tensorflow/tensorflow/core/kernels/data/ |
D | single_threaded_executor_test.cc | 255 uint32 r = 1 + rand.Rand32() % width; in BM_executor() 263 r = 1 + rand.Rand32() % (ready_nodes.size()); in BM_executor() 271 r = 1 + rand.Rand32() % width; in BM_executor()
|
/external/tensorflow/tensorflow/core/common_runtime/gpu/ |
D | gpu_bfc_allocator_test.cc | 99 std::max<size_t>(rand.Rand32() % 1048576, 100), 1048576); in TEST() 123 std::max<size_t>(rand.Rand32() % 1048576, 100), 1048576); in TEST() 254 std::max<size_t>(rand.Rand32() % max_mem, 100), max_mem); in TEST() 274 std::max<size_t>(rand.Rand32() % max_mem_2, 100), max_mem_2); in TEST()
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | executor_test.cc | 424 uint32 r = 1 + rand.Rand32() % width; in BM_executor() 432 r = 1 + rand.Rand32() % (ready_nodes.size()); in BM_executor() 440 r = 1 + rand.Rand32() % width; in BM_executor()
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 99 uint32_t Rand32() { in Rand32() function in llvm::__anon4119587c0111::Random 107 uint64_t Val = Rand32(); in Rand64() 108 return Val | (uint64_t(Rand32()) << 32); in Rand64()
|
/external/ltp/testcases/kernel/io/disktest/ |
D | sfunc.c | 66 long Rand32(void) in Rand32() function
|
/external/tensorflow/tensorflow/core/util/sparse/ |
D | sparse_tensor_test.cc | 755 int len = rnd.Rand32() % 1000; in BM_SparseReorderString()
|