Home
last modified time | relevance | path

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

/external/rust/crates/oorandom/src/
Dlib.rs29 pub struct Rand32 { struct
34 impl Rand32 { impl
274 let mut r1 = Rand32::new(seed); in test_rand32_vs_randomize()
275 let mut r2 = PCG32::seed(seed, Rand32::DEFAULT_INC); in test_rand32_vs_randomize()
285 let mut r1 = Rand32::new_inc(seed, inc); in test_rand32_vs_randomize()
324 let mut r1 = Rand32::new(seed); in test_float32()
325 let mut r2 = PCG32::seed(seed, Rand32::DEFAULT_INC); in test_float32()
416 let mut r1 = Rand32::new(seed); in test_randrange32()
460 let mut r1 = Rand32::new(seed); in test_rand32_vs_rand()
461 let mut r2 = rand_pcg::Pcg32::new(seed, Rand32::DEFAULT_INC); in test_rand32_vs_rand()
[all …]
/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/image/
Drandom_crop_op.cc83 offset_width = random.Rand32() % (width - target_width + 1); in Compute()
86 offset_height = random.Rand32() % (height - target_height + 1); in Compute()
/external/tensorflow/tensorflow/core/kernels/data/
Dsingle_threaded_executor_test.cc284 uint32 r = 1 + rand.Rand32() % width; in BM_executor()
294 r = 1 + rand.Rand32() % (ready_nodes.size()); in BM_executor()
302 r = 1 + rand.Rand32() % width; in BM_executor()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_bfc_allocator_test.cc144 std::max<size_t>(rand.Rand32() % 1048576, 100), 1048576); in TEST_P()
168 std::max<size_t>(rand.Rand32() % 1048576, 100), 1048576); in TEST_P()
275 std::max<size_t>(rand.Rand32() % max_mem, 100), max_mem); in TEST_P()
295 std::max<size_t>(rand.Rand32() % max_mem_2, 100), max_mem_2); in TEST_P()
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp99 uint32_t Rand32() { in Rand32() function in llvm::__anon35362e5a0111::Random
107 uint64_t Val = Rand32(); in Rand64()
108 return Val | (uint64_t(Rand32()) << 32); in Rand64()
/external/tensorflow/tensorflow/core/common_runtime/
Dexecutor_test.cc444 uint32 r = 1 + rand.Rand32() % width; in BM_executor()
454 r = 1 + rand.Rand32() % (ready_nodes.size()); in BM_executor()
462 r = 1 + rand.Rand32() % width; in BM_executor()
/external/ltp/testcases/kernel/io/disktest/
Dsfunc.c66 long Rand32(void) in Rand32() function
/external/rust/crates/oorandom/
DREADME.md70 let mut rng = oorandom::Rand32::new(some_seed);
/external/tensorflow/tensorflow/core/util/sparse/
Dsparse_tensor_test.cc799 int len = rnd.Rand32() % 1000; in BM_SparseReorderString()