Home
last modified time | relevance | path

Searched refs:Rand32 (Results 1 – 13 of 13) sorted by relevance

/external/tensorflow/tensorflow/core/lib/random/
Dsimple_philox.cc24 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()
Dsimple_philox_test.cc50 if (gen1->Rand32() != gen2->Rand32()) { in DifferenceTest()
82 uint32 v = gen1.Rand32(); in TEST()
85 all.insert(gen2.Rand32()); in TEST()
Dweighted_picker.cc56 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()
Dsimple_philox.h36 PHILOX_DEVICE_INLINE uint32 Rand32() { return single_(); } in Rand32() function
/external/tensorflow/tensorflow/core/util/
Dexample_proto_fast_parsing_test.cc329 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/
Dtensor_id_test.cc38 const uint32 space = 1 << (rnd->Rand32() % (max_log + 1)); in Skewed()
39 return rnd->Rand32() % space; in Skewed()
/external/tensorflow/tensorflow/core/kernels/
Drandom_crop_op.cc87 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/
Dsingle_threaded_executor_test.cc255 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/
Dgpu_bfc_allocator_test.cc99 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/
Dexecutor_test.cc424 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/
Dllvm-stress.cpp99 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/
Dsfunc.c66 long Rand32(void) in Rand32() function
/external/tensorflow/tensorflow/core/util/sparse/
Dsparse_tensor_test.cc755 int len = rnd.Rand32() % 1000; in BM_SparseReorderString()