Home
last modified time | relevance | path

Searched full:rand (Results 1 – 25 of 4514) sorted by relevance

12345678910>>...181

/external/executorch/backends/arm/test/ops/
Dtest_batch_norm.py48 torch.rand(32),
49 torch.rand(32),
50 torch.rand(32),
51 torch.rand(32),
61 torch.rand(32),
62 torch.rand(32),
63 torch.rand(32),
64 torch.rand(32),
92 torch.rand(32),
93 torch.rand(32),
[all …]
/external/pytorch/torchgen/static_runtime/
Dconfig.py67 arg_map["self"] = "at::rand({6, 6})"
68 arg_map["vec1"] = "at::rand({6})"
69 arg_map["vec2"] = "at::rand({6})"
71 arg_map["self"] = "at::rand({22, 22})"
72 arg_map["vec1"] = "at::rand({22})"
73 arg_map["vec2"] = "at::rand({22})"
77 arg_map["self"] = "at::rand({6, 6})"
78 arg_map["vec"] = "at::rand({6})"
80 arg_map["self"] = "at::rand({22, 22})"
81 arg_map["vec"] = "at::rand({22})"
[all …]
/external/pytorch/test/inductor/
Dtest_combo_kernels.py55 torch.rand(10, 10, device="cuda"),
56 torch.rand(20, 20, device="cuda"),
57 torch.rand(10, 10, device="cuda"),
77 torch.rand(10, 10, device="cuda"),
78 torch.rand(20, 20, device="cuda"),
79 torch.rand(10, 10, device="cuda"),
80 torch.rand(30, 8, device="cuda"),
100 torch.rand(10, 10, device="cuda"),
101 torch.rand(20, 20, device="cuda"),
102 torch.rand(10, 10, device="cuda"),
[all …]
Dtest_foreach.py75 torch.rand(10, 10, device="cuda:0"),
76 torch.rand(20, 20, device="cuda:0"),
80 torch.rand(10, 10, device="cuda:0"),
81 torch.rand(20, 20, device="cuda:0"),
82 torch.rand(10, 10, device="cuda:0"),
83 torch.rand(20, 20, device="cuda:0"),
124 torch.rand(10, 10, device="cuda:0"),
125 torch.rand(20, 20, device="cuda:0"),
136 torch.rand(10, 10, device="cuda:0"),
137 torch.rand(20, 20, device="cuda:0"),
[all …]
/external/cronet/stable/third_party/libc++/src/modules/std/
Drandom.inc11 // [rand.req.urng], uniform random bit generator requirements
14 // [rand.eng.lcong], class template linear_congruential_engine
17 // [rand.eng.mers], class template mersenne_twister_engine
20 // [rand.eng.sub], class template subtract_with_carry_engine
23 // [rand.adapt.disc], class template discard_block_engine
26 // [rand.adapt.ibits], class template independent_bits_engine
29 // [rand.adapt.shuf], class template shuffle_order_engine
32 // [rand.predef], engines and engine adaptors with predefined parameters
46 // [rand.device], class random_device
50 // [rand.util.seedseq], class seed_seq
[all …]
/external/cronet/tot/third_party/libc++/src/modules/std/
Drandom.inc11 // [rand.req.urng], uniform random bit generator requirements
14 // [rand.eng.lcong], class template linear_congruential_engine
17 // [rand.eng.mers], class template mersenne_twister_engine
20 // [rand.eng.sub], class template subtract_with_carry_engine
23 // [rand.adapt.disc], class template discard_block_engine
26 // [rand.adapt.ibits], class template independent_bits_engine
29 // [rand.adapt.shuf], class template shuffle_order_engine
32 // [rand.predef], engines and engine adaptors with predefined parameters
46 // [rand.device], class random_device
50 // [rand.util.seedseq], class seed_seq
[all …]
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/rand-0.8.5/
DREADME.md1 # Rand chapter
3 …atus](https://github.com/rust-random/rand/workflows/Tests/badge.svg?event=push)](https://github.co…
4 [![Crate](https://img.shields.io/crates/v/rand.svg)](https://crates.io/crates/rand)
6 …[API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand)
7 [![API](https://docs.rs/rand/badge.svg)](https://docs.rs/rand)
8 …ields.io/badge/rustc-1.36+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requir…
12 - Easy random value generation and usage via the [`Rng`](https://docs.rs/rand/*/rand/trait.Rng.ht…
13 [`SliceRandom`](https://docs.rs/rand/*/rand/seq/trait.SliceRandom.html) and
14 [`IteratorRandom`](https://docs.rs/rand/*/rand/seq/trait.IteratorRandom.html) traits
16 … and fast, convenient generation via [`thread_rng`](https://docs.rs/rand/*/rand/fn.thread_rng.html)
[all …]
/external/rust/android-crates-io/crates/rand/
DREADME.md1 # Rand chapter
3 …atus](https://github.com/rust-random/rand/workflows/Tests/badge.svg?event=push)](https://github.co…
4 [![Crate](https://img.shields.io/crates/v/rand.svg)](https://crates.io/crates/rand)
6 …[API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand)
7 [![API](https://docs.rs/rand/badge.svg)](https://docs.rs/rand)
8 …ields.io/badge/rustc-1.36+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requir…
12 - Easy random value generation and usage via the [`Rng`](https://docs.rs/rand/*/rand/trait.Rng.ht…
13 [`SliceRandom`](https://docs.rs/rand/*/rand/seq/trait.SliceRandom.html) and
14 [`IteratorRandom`](https://docs.rs/rand/*/rand/seq/trait.IteratorRandom.html) traits
16 … and fast, convenient generation via [`thread_rng`](https://docs.rs/rand/*/rand/fn.thread_rng.html)
[all …]
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/rand-0.8.5/
DREADME.md1 # Rand chapter
3 …atus](https://github.com/rust-random/rand/workflows/Tests/badge.svg?event=push)](https://github.co…
4 [![Crate](https://img.shields.io/crates/v/rand.svg)](https://crates.io/crates/rand)
6 …[API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand)
7 [![API](https://docs.rs/rand/badge.svg)](https://docs.rs/rand)
8 …ields.io/badge/rustc-1.36+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requir…
12 - Easy random value generation and usage via the [`Rng`](https://docs.rs/rand/*/rand/trait.Rng.ht…
13 [`SliceRandom`](https://docs.rs/rand/*/rand/seq/trait.SliceRandom.html) and
14 [`IteratorRandom`](https://docs.rs/rand/*/rand/seq/trait.IteratorRandom.html) traits
16 … and fast, convenient generation via [`thread_rng`](https://docs.rs/rand/*/rand/fn.thread_rng.html)
[all …]
/external/pytorch/test/optim/
Dtest_optim.py54 p = torch.rand(10, requires_grad=True, dtype=torch.float64)
55 grad = torch.rand(10, requires_grad=True, dtype=torch.float64)
56 mbuff = torch.rand(10, requires_grad=True, dtype=torch.float64)
72 p = torch.rand(10, requires_grad=True, dtype=torch.float64)
73 grad = torch.rand(10, requires_grad=True, dtype=torch.float64)
77 state["exp_avg"] = torch.rand(10, requires_grad=True, dtype=torch.float64)
78 state["exp_avg_sq"] = torch.rand(10, requires_grad=True, dtype=torch.float64)
79 state["max_exp_avg_sq"] = torch.rand(
97 p = torch.rand(10, requires_grad=True, dtype=torch.float64)
98 grad = torch.rand(10, requires_grad=True, dtype=torch.float64)
[all …]
/external/skia/gm/
Dbeziers.cpp23 static SkPath rnd_quad(SkPaint* paint, SkRandom& rand) { in rnd_quad() argument
24 auto a = rand.nextRangeScalar(0,W), in rnd_quad()
25 b = rand.nextRangeScalar(0,H); in rnd_quad()
30 auto c = rand.nextRangeScalar(W/4, W), in rnd_quad()
31 d = rand.nextRangeScalar( 0, H), in rnd_quad()
32 e = rand.nextRangeScalar( 0, W), in rnd_quad()
33 f = rand.nextRangeScalar(H/4, H); in rnd_quad()
36 paint->setColor(rand.nextU()); in rnd_quad()
37 SkScalar width = rand.nextRangeScalar(1, 5); in rnd_quad()
44 static SkPath rnd_cubic(SkPaint* paint, SkRandom& rand) { in rnd_cubic() argument
[all …]
/external/skia/tests/graphite/precompile/
DPaintParamsKeyTest.cpp354 const skcms_TransferFunction& random_xfer_function(SkRandom* rand) { in random_xfer_function() argument
355 return gTransferFunctions[rand->nextULessThan(kTransferFunctionCount)]; in random_xfer_function()
368 const skcms_Matrix3x3& random_gamut(SkRandom* rand) { in random_gamut() argument
369 return gGamuts[rand->nextULessThan(kGamutCount)]; in random_gamut()
384 ColorSpaceType random_colorspacetype(SkRandom* rand) { in random_colorspacetype() argument
385 return static_cast<ColorSpaceType>(rand->nextULessThan(kColorSpaceTypeCount)); in random_colorspacetype()
388 sk_sp<SkColorSpace> random_colorspace(SkRandom* rand) { in random_colorspace() argument
389 ColorSpaceType cs = random_colorspacetype(rand); in random_colorspace()
401 return SkColorSpace::MakeRGB(random_xfer_function(rand), random_gamut(rand)); in random_colorspace()
413 SkColor random_color(SkRandom* rand, ColorConstraint constraint) { in random_color() argument
[all …]
/external/webrtc/logging/rtc_event_log/
Drtc_event_log_unittest_helper.cc79 uint32_t other = prng->Rand(i, static_cast<uint32_t>(array.size() - 1)); in ShuffleInPlace()
96 return std::make_unique<RtcEventAlrState>(prng_.Rand<bool>()); in NewAlrState()
109 config->bitrate_bps = prng_.Rand(0, 3000000); in NewAudioNetworkAdaptation()
110 config->enable_fec = prng_.Rand<bool>(); in NewAudioNetworkAdaptation()
111 config->enable_dtx = prng_.Rand<bool>(); in NewAudioNetworkAdaptation()
112 config->frame_length_ms = prng_.Rand(10, 120); in NewAudioNetworkAdaptation()
113 config->num_channels = prng_.Rand(1, 2); in NewAudioNetworkAdaptation()
114 config->uplink_packet_loss_fraction = prng_.Rand<float>(); in NewAudioNetworkAdaptation()
122 int32_t bitrate_bps = prng_.Rand(0, kMaxBweBps); in NewBweUpdateDelayBased()
124 prng_.Rand(static_cast<uint32_t>(BandwidthUsage::kLast) - 1)); in NewBweUpdateDelayBased()
[all …]
/external/pytorch/benchmarks/fuser/
Drun_benchmarks.py15 def rand(*shape): function
16 return torch.rand(*shape).mul(16).add(1)
23 return (rand(1), rand(1))
27 return (rand(32), rand(32))
31 return (rand(1, 32), rand(1, 32))
35 return (rand(4, 32), rand(32))
39 return (rand(32, 12, 64, 64), rand(32, 12, 64, 64))
43 return (rand(32, 12, 64, 64)[..., ::2], rand(32, 12, 64, 64)[..., ::2])
48 rand(32, 12, 64, 64).transpose(-1, -2),
49 rand(32, 12, 64, 64).transpose(-1, -2),
[all …]
/external/rust/android-crates-io/crates/libfuzzer-sys/libfuzzer/
DFuzzerMutate.cpp27 MutationDispatcher::MutationDispatcher(Random &Rand, in MutationDispatcher() argument
29 : Rand(Rand), Options(Options) { in MutationDispatcher()
63 static char RandCh(Random &Rand) { in RandCh() argument
64 if (Rand.RandBool()) in RandCh()
65 return static_cast<char>(Rand(256)); in RandCh()
67 return Special[Rand(sizeof(Special) - 1)]; in RandCh()
77 Rand.Rand<unsigned int>()); in Mutate_Custom()
100 Rand.Rand<unsigned int>()); in Mutate_CustomCrossOver()
113 Rand(std::min(Size, (size_t)8)) + 1; // [1,8] and <= Size. in Mutate_ShuffleBytes()
114 size_t ShuffleStart = Rand(Size - ShuffleAmount); in Mutate_ShuffleBytes()
[all …]
/external/pytorch/functorch/benchmarks/
Dpointwise_scorecard.py14 def rand(*shape): function
15 return torch.rand(*shape).mul(16).add(1)
22 return (rand(1), rand(1))
26 return (rand(32), rand(32))
30 return (rand(1, 32), rand(1, 32))
34 return (rand(4, 32), rand(32))
38 return (rand(32, 12, 64, 64), rand(32, 12, 64, 64))
42 return (rand(32, 12, 64, 64)[..., ::2], rand(32, 12, 64, 64)[..., ::2])
47 rand(32, 12, 64, 64).transpose(-1, -2),
48 rand(32, 12, 64, 64).transpose(-1, -2),
[all …]
/external/pytorch/benchmarks/static_runtime/
Dtest_generated_ops.cc24 auto self0 = at::rand({6, 6, 6}); in TEST()
34 auto self1 = at::rand({22, 22, 22}); in TEST()
54 auto self0 = at::rand({6, 6, 6}); in TEST()
64 auto self1 = at::rand({22, 22, 22}); in TEST()
84 auto self0 = at::rand({6, 6, 6}); in TEST()
94 auto self1 = at::rand({22, 22, 22}); in TEST()
114 auto self0 = at::rand({6, 6, 6}); in TEST()
124 auto self1 = at::rand({22, 22, 22}); in TEST()
144 auto self0 = at::rand({6, 6, 6}); in TEST()
154 auto self1 = at::rand({22, 22, 22}); in TEST()
[all …]
/external/pytorch/aten/src/ATen/test/
Dmemory_format_test.cpp12 Tensor t = at::rand(size); in TEST()
19 Tensor t = at::rand({4, 1, 1, 1}); in TEST()
29 Tensor t = at::rand({2, 3, 4, 5}); in TEST()
35 t = at::rand({2, 3, 4, 5}); in TEST()
38 t = at::rand({2, 3, 4, 5}); in TEST()
43 t = at::rand({1, 4, 1, 4}); in TEST()
46 t = at::rand({1, 4, 1, 4}); in TEST()
49 t = at::rand({1, 4, 1, 4}); in TEST()
52 t = at::rand({1, 4, 1, 4}); in TEST()
57 t = at::rand({1, 4, 4, 1}); in TEST()
[all …]
/external/python/cpython3/Tools/scripts/
Dsortperf.py32 def _random_data(size: int, rand: random.Random) -> list[float]:
33 result = [rand.random() for _ in range(size)]
36 i = rand.randrange(size)
46 def list_sort(size: int, rand: random.Random) -> list[float]:
47 return _random_data(size, rand)
50 def list_sort_descending(size: int, rand: random.Random) -> list[float]:
51 return list(reversed(list_sort_ascending(size, rand)))
54 def list_sort_ascending(size: int, rand: random.Random) -> list[float]:
55 return sorted(_random_data(size, rand))
58 def list_sort_ascending_exchanged(size: int, rand: random.Random) -> list[float]:
[all …]
/external/skia/bench/
DStrokeBench.cpp57 static SkPoint rand_pt(SkRandom& rand) { in rand_pt() argument
58 return SkPoint::Make(rand.nextSScalar1() * X, rand.nextSScalar1() * Y); in rand_pt()
63 SkRandom rand; in line_path_maker() local
64 path.moveTo(rand_pt(rand)); in line_path_maker()
66 path.lineTo(rand_pt(rand)); in line_path_maker()
72 SkRandom rand; in quad_path_maker() local
73 path.moveTo(rand_pt(rand)); in quad_path_maker()
75 path.quadTo(rand_pt(rand), rand_pt(rand)); in quad_path_maker()
81 SkRandom rand; in conic_path_maker() local
82 path.moveTo(rand_pt(rand)); in conic_path_maker()
[all …]
DRTreeBench.cpp41 SkRandom rand; in onDraw() local
44 rects[i] = fProc(rand, i, NUM_BUILD_RECTS); in onDraw()
73 SkRandom rand; in onDelayedSetup() local
76 rects[i] = fProc(rand, i, NUM_QUERY_RECTS); in onDelayedSetup()
82 SkRandom rand; in onDraw() local
86 query.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw()
87 query.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw()
88 query.fRight = query.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw()
89 query.fBottom = query.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw()
100 static inline SkRect make_XYordered_rects(SkRandom& rand, int index, int numRects) { in make_XYordered_rects() argument
[all …]
/external/llvm/lib/Fuzzer/
DFuzzerMutate.cpp21 MutationDispatcher::MutationDispatcher(Random &Rand, in MutationDispatcher() argument
23 : Rand(Rand), Options(Options) { in MutationDispatcher()
52 static char FlipRandomBit(char X, Random &Rand) { in FlipRandomBit() argument
53 int Bit = Rand(8); in FlipRandomBit()
64 static char RandCh(Random &Rand) { in RandCh() argument
65 if (Rand.RandBool()) return Rand(256); in RandCh()
67 return Special[Rand(sizeof(Special) - 1)]; in RandCh()
72 return EF->LLVMFuzzerCustomMutator(Data, Size, MaxSize, Rand.Rand()); in Mutate_Custom()
79 size_t Idx = Rand(Corpus->size()); in Mutate_CustomCrossOver()
86 Data, Size, Other.data(), Other.size(), U.data(), U.size(), Rand.Rand()); in Mutate_CustomCrossOver()
[all …]
/external/pytorch/test/
Dtest_legacy_vmap.py352 x = torch.rand(5, 2, 3)
353 y = torch.rand(3, 5, 2)
649 x_orig = torch.rand(B0, 5)
656 x_orig = torch.rand(B0, 5)
719 x = torch.rand(B0, 7)
720 y = torch.rand(7)
724 x_orig = torch.rand(B0, 7)
726 y = torch.rand(7)
730 x_orig = torch.rand(B0, B1, 7)
732 y = torch.rand(B0, 7)
[all …]
/external/pytorch/aten/src/ATen/native/metal/mpscnn/tests/
DMPSCNNTests.mm18 int64_t rand(int64_t min, int64_t max) {
19 return min + (std::rand() % static_cast<int64_t>(max - min + 1));
138 auto x1 = at::rand(size, at::TensorOptions(at::kCPU).dtype(at::kFloat));
151 auto t1 = at::rand(size, at::TensorOptions(at::kCPU).dtype(at::kFloat));
165 int64_t N = rand(1, 10);
166 int64_t C = rand(1, 48);
167 int64_t IH = rand(1, 300);
168 int64_t IW = rand(1, 300);
169 int64_t OC = rand(1, 48);
171 int64_t KH = rand(1, MIN(10, IH));
[all …]
/external/coreboot/src/vendorcode/intel/edk2/edk2-stable202111/MdePkg/Include/Library/
DRngLib.h15 if Rand is NULL, then ASSERT().
17 @param[out] Rand Buffer pointer to store the 16-bit random value.
26 OUT UINT16 *Rand
32 if Rand is NULL, then ASSERT().
34 @param[out] Rand Buffer pointer to store the 32-bit random value.
43 OUT UINT32 *Rand
49 if Rand is NULL, then ASSERT().
51 @param[out] Rand Buffer pointer to store the 64-bit random value.
60 OUT UINT64 *Rand
66 if Rand is NULL, then ASSERT().
[all …]

12345678910>>...181