Home
last modified time | relevance | path

Searched refs:from_seed (Results 1 – 25 of 30) sorted by relevance

12

/external/rust/crates/rand_chacha/src/
Dchacha.rs103 fn from_seed(seed: Self::Seed) -> Self {
156 fn from_seed(seed: Self::Seed) -> Self {
157 let core = $ChaChaXCore::from_seed(seed);
285 let mut rng1 = ChaChaRng::from_seed(seed); in test_chacha_construction()
297 let mut rng = ChaChaRng::from_seed(seed); in test_chacha_true_values_a()
329 let mut rng = ChaChaRng::from_seed(seed); in test_chacha_true_values_b()
365 let mut rng1 = ChaChaRng::from_seed(seed); in test_chacha_true_values_c()
376 let mut rng2 = ChaChaRng::from_seed(seed); in test_chacha_true_values_c()
405 let mut rng = ChaChaRng::from_seed(seed); in test_chacha_multiple_blocks()
427 let mut rng = ChaChaRng::from_seed(seed); in test_chacha_true_bytes()
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dstateful_random_ops_test.py74 gen = random.Generator.from_seed(seed=0, alg=alg)
84 gen = random.Generator.from_seed(seed=0, alg=alg)
122 g = random.Generator.from_seed(seed=0, alg=random.RNG_ALG_THREEFRY)
143 g = random.Generator.from_seed(seed=0, alg=random.RNG_ALG_PHILOX)
221 cpu_gen = random.Generator.from_seed(
224 xla_gen = random.Generator.from_seed(
243 random.Generator.from_seed(
248 random.Generator.from_seed(
264 cpu_gen = random.Generator.from_seed(
267 xla_gen = random.Generator.from_seed(
[all …]
/external/rust/crates/rand_xorshift/tests/
Dmod.rs8 let mut rng1 = XorShiftRng::from_seed(seed); in test_xorshift_construction()
20 let mut rng = XorShiftRng::from_seed(seed); in test_xorshift_true_values()
51 let mut rng = XorShiftRng::from_seed(seed); in test_xorshift_zero_seed()
61 let mut rng1 = XorShiftRng::from_seed(seed); in test_xorshift_clone()
75 let mut rng = XorShiftRng::from_seed(seed); in test_xorshift_serde()
/external/tensorflow/tensorflow/python/ops/
Dstateful_random_ops_test.py112 gen = random.Generator.from_seed(1234)
142 gen = random.Generator.from_seed(1234) # gen is on CPU
151 gen = random.Generator.from_seed(0)
179 lambda: random.Generator.from_seed(1234),
206 g_by_name = random.Generator.from_seed(1234, name)
207 g_by_int = random.Generator.from_seed(1234, int_id)
208 g_by_enum = random.Generator.from_seed(1234, enum_id)
244 g = random.Generator.from_seed(0)
275 gen1 = random.Generator.from_seed(seed)
461 cpu = random.Generator.from_seed(seed).uniform_full_int(
[all …]
/external/rust/crates/rand_core/src/
Dlib.rs285 fn from_seed(seed: Self::Seed) -> Self; in from_seed() method
329 Self::from_seed(seed) in seed_from_u64()
359 Ok(Self::from_seed(seed)) in from_rng()
383 Self::from_seed(seed) in from_entropy()
463 fn from_seed(seed: Self::Seed) -> Self { in test_seed_from_u64() method
Dblock.rs241 fn from_seed(seed: Self::Seed) -> Self { in from_seed() method
242 Self::new(R::from_seed(seed)) in from_seed()
416 fn from_seed(seed: Self::Seed) -> Self { in from_seed() method
417 Self::new(R::from_seed(seed)) in from_seed()
/external/rust/crates/rand/src/rngs/
Dstd.rs66 fn from_seed(seed: Self::Seed) -> Self { in from_seed() method
67 StdRng(Rng::from_seed(seed)) in from_seed()
94 let mut rng0 = StdRng::from_seed(seed); in test_stdrng_construction()
Dxoshiro256plusplus.rs34 fn from_seed(seed: [u8; 32]) -> Xoshiro256PlusPlus { in from_seed() method
57 Self::from_seed(seed) in seed_from_u64()
108 let mut rng = Xoshiro256PlusPlus::from_seed( in reference()
Dxoshiro128plusplus.rs34 fn from_seed(seed: [u8; 16]) -> Xoshiro128PlusPlus { in from_seed() method
57 Self::from_seed(seed) in seed_from_u64()
106 let mut rng = Xoshiro128PlusPlus::from_seed( in reference()
Dsmall.rs109 fn from_seed(seed: Self::Seed) -> Self { in from_seed() method
110 SmallRng(Rng::from_seed(seed)) in from_seed()
/external/tensorflow/tensorflow/python/kernel_tests/random/
Drandom_binomial_test.py44 stateful_random_ops.Generator.from_seed(seed))
61 gen = stateful_random_ops.Generator.from_seed(seed=12345)
97 rnd = stateful_random_ops.Generator.from_seed(12345).binomial([0], [], [])
101 rng = stateful_random_ops.Generator.from_seed(12345)
150 rng = stateful_random_ops.Generator.from_seed(12345)
190 gen = stateful_random_ops.Generator.from_seed(seed=23455)
/external/tensorflow/tensorflow/python/distribute/
Drandom_generator_test.py90 g = rng.Generator.from_seed(1)
112 True: functools.partial(rng.Generator.from_seed, 1234),
144 gen = rng.Generator.from_seed(1234)
189 g1 = rng.Generator.from_seed(1)
191 g2 = rng.Generator.from_seed(10)
222 self.g = rng.Generator.from_seed(0)
/external/rust/crates/plotters/examples/
Dnormal-dist.rs17 let mut x_rand = XorShiftRng::from_seed(*b"MyFragileSeed123"); in main()
18 let mut y_rand = XorShiftRng::from_seed(*b"MyFragileSeed321"); in main()
Darea-chart.rs10 let mut x_rand = XorShiftRng::from_seed(*b"MyFragileSeed123"); in main()
Dnormal-dist2.rs14 let mut x_rand = XorShiftRng::from_seed(*b"MyFragileSeed123"); in main()
Derrorbar.rs58 let mut x_rand = XorShiftRng::from_seed(*b"MyFragileSeed123"); in generate_random_data()
/external/rust/crates/hashbrown/tests/
Dset.rs15 let rng = &mut SmallRng::from_seed(seed); in test_hashset_insert_remove()
/external/rust/crates/ryu/examples/
Dupstream_benchmark.rs43 let mut rng = rand_xorshift::XorShiftRng::from_seed([123u8; 16]);
/external/rust/crates/rand_xorshift/src/
Dlib.rs82 fn from_seed(seed: Self::Seed) -> Self { in from_seed() method
/external/rust/crates/rayon-core/src/join/
Dtest.rs36 XorShiftRng::from_seed(seed) in seeded_rng()
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.random.-generator.pbtxt36 name: "from_seed"
Dtensorflow.random.experimental.-generator.pbtxt36 name: "from_seed"
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.random.-generator.pbtxt36 name: "from_seed"
Dtensorflow.random.experimental.-generator.pbtxt36 name: "from_seed"
/external/rust/crates/rayon/tests/
Dstr.rs9 XorShiftRng::from_seed(seed) in seeded_rng()

12