/external/webrtc/modules/rtp_rtcp/source/ |
D | source_tracker_unittest.cc | 103 generator_(42) {} in SourceTrackerRandomTest() 107 1, kPacketInfosCountMax)(generator_); in GeneratePacketInfos() 121 double roll = std::uniform_real_distribution<double>(0.0, 1.0)(generator_); in GenerateClockAdvanceTimeMilliseconds() 138 SourceTracker::kTimeoutMs * 1000)(generator_); in GenerateClockAdvanceTimeMilliseconds() 142 1, SourceTracker::kTimeoutMs - 1)(generator_); in GenerateClockAdvanceTimeMilliseconds() 147 return std::uniform_int_distribution<uint32_t>(1, ssrcs_count_)(generator_); in GenerateSsrc() 153 if (std::bernoulli_distribution(0.5)(generator_)) { in GenerateCsrcs() 162 return std::uniform_int_distribution<uint32_t>()(generator_); in GenerateRtpTimestamp() 166 if (std::bernoulli_distribution(0.25)(generator_)) { in GenerateAudioLevel() 172 std::uniform_int_distribution<uint16_t>()(generator_)); in GenerateAudioLevel() [all …]
|
/external/tensorflow/tensorflow/core/util/ |
D | guarded_philox_random.cc | 42 generator_ = random::PhiloxRandom(seed, seed2); in Init() 50 generator_ = random::PhiloxRandom(counter, key); in Init() 57 auto local = generator_; in ReserveSamples128() 58 generator_.Skip(samples); in ReserveSamples128()
|
D | guarded_philox_random.h | 74 random::PhiloxRandom generator_ TF_GUARDED_BY(mu_);
|
/external/tensorflow/tensorflow/core/kernels/data/ |
D | random_seed_ops.cc | 51 *seed1 = generator_(); in GenerateSeeds() 53 *seed2 = generator_(); in GenerateSeeds() 60 generator_ = in Reset() 62 generator_.Skip(num_random_samples_); in Reset()
|
D | random_seed_ops.h | 113 generator_(&parent_generator_) {} in RandomSeedGenerator() 125 random::SingleSampleAdapter<random::PhiloxRandom> generator_
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | log_quantized_test.cc | 52 NumberGenerator generator_; member in tflite::LogQuantizedTest 279 generator_.RandomIntVector(kVariations, 0, 24); in TEST_F() 281 generator_.RandomIntVector(kVariations, 1, 10); in TEST_F() 290 "VariedIntegerBits", tolerance, &generator_); in TEST_F() 293 tolerance, &generator_); in TEST_F() 304 kIntegerTolerance, &generator_); in TEST_F() 307 &generator_); in TEST_F()
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | test_utils.h | 42 : min_(min_value), max_(max_value), generator_(seed) {} in PseudorandomGenerator() 48 (max_ - min_) * distribution(generator_)); in get() 54 std::mt19937 generator_; variable
|
/external/tensorflow/tensorflow/core/kernels/ |
D | random_op.cc | 68 OP_REQUIRES_OK(ctx, generator_.Init(ctx)); in PhiloxRandomOp() 80 generator_.ReserveRandomOutputs(output_flat.size(), 256), in Compute() 85 GuardedPhiloxRandom generator_; member in tensorflow::__anon6638454a0111::PhiloxRandomOp 92 OP_REQUIRES_OK(ctx, generator_.Init(ctx)); in RandomUniformIntOp() 129 generator_.ReserveRandomOutputs(output_flat.size(), 256), in Compute() 134 GuardedPhiloxRandom generator_; member in tensorflow::__anon6638454a0111::RandomUniformIntOp 143 OP_REQUIRES_OK(context, generator_.Init(context)); in RandomGammaOp() 198 PhiloxRandom rng = generator_.ReserveRandomOutputs( in Compute() 322 GuardedPhiloxRandom generator_; member in tensorflow::__anon6638454a0111::RandomGammaOp
|
D | random_shuffle_op.cc | 66 OP_REQUIRES_OK(context, generator_.Init(context)); in RandomShuffleOp() 79 auto local_gen = generator_.ReserveSamples32(samples); in Compute() 105 GuardedPhiloxRandom generator_; member in tensorflow::RandomShuffleOp
|
D | random_poisson_op.cc | 289 OP_REQUIRES_OK(context, generator_.Init(context)); in RandomPoissonOp() 309 random::PhiloxRandom rng = generator_.ReserveRandomOutputs( in Compute() 318 GuardedPhiloxRandom generator_; member in tensorflow::__anon21a1daf40311::RandomPoissonOp
|
D | multinomial_op.cc | 225 OP_REQUIRES_OK(ctx, generator_.Init(ctx)); in StatefulMultinomialOp() 231 this->DoCompute(ctx, logits_t, num_samples_t, &generator_); in Compute() 235 GuardedPhiloxRandom generator_; member in tensorflow::__anon64d771140211::StatefulMultinomialOp 304 GuardedPhiloxRandom generator_; member in tensorflow::__anon64d771140211::StatelessMultinomialOp
|
D | candidate_sampler_ops.cc | 39 OP_REQUIRES_OK(context, generator_.Init(context)); in BaseCandidateSamplerOp() 90 auto local_gen = generator_.ReserveSamples32(samples32); in Compute() 109 GuardedPhiloxRandom generator_; member in tensorflow::BaseCandidateSamplerOp
|
/external/tensorflow/tensorflow/core/kernels/data/experimental/ |
D | random_dataset_op.cc | 92 generator_(&parent_generator_) {} in Iterator() 125 generator_ = in RestoreInternal() 127 generator_.Skip(num_random_samples_); in RestoreInternal() 135 auto out = generator_(); in Random() 141 random::SingleSampleAdapter<random::PhiloxRandom> generator_
|
D | sampling_dataset_op.cc | 106 generator_(&parent_generator_) {} 148 generator_ = in ResetRngs() 150 generator_.Skip(num_random_samples_); in ResetRngs() 203 uint32 random_uint = generator_(); in Random() 212 random::SingleSampleAdapter<random::PhiloxRandom> generator_
|
/external/webrtc/modules/desktop_capture/ |
D | fake_desktop_capturer.cc | 40 generator_ = generator; in set_frame_generator() 49 if (generator_) { in CaptureFrame() 56 generator_->GetNextFrame(shared_memory_factory_.get())); in CaptureFrame()
|
D | fake_desktop_capturer.h | 69 DesktopFrameGenerator* generator_ = nullptr; variable
|
/external/tensorflow/tensorflow/core/kernels/image/ |
D | random_crop_op.cc | 31 OP_REQUIRES_OK(context, generator_.Init(context)); in RandomCropOp() 79 auto local_gen = generator_.ReserveSamples32(2); in Compute() 105 GuardedPhiloxRandom generator_; member in tensorflow::RandomCropOp
|
/external/webrtc/rtc_base/ |
D | rtc_certificate_generator_unittest.cc | 32 generator_.reset( in RTCCertificateGeneratorFixture() 37 RTCCertificateGenerator* generator() const { return generator_.get(); } in generator() 65 std::unique_ptr<RTCCertificateGenerator> generator_; member in rtc::RTCCertificateGeneratorFixture
|
/external/webrtc/modules/audio_coding/neteq/tools/ |
D | encode_neteq_input.cc | 24 : generator_(std::move(generator)), in EncodeNetEqInput() 78 info = encoder_->Encode(rtp_timestamp_, generator_->Generate(num_samples), in CreatePacket()
|
D | encode_neteq_input.h | 57 std::unique_ptr<Generator> generator_; variable
|
/external/tensorflow/tensorflow/compiler/xla/service/cpu/ |
D | shape_partition_test.cc | 152 : generator_(rd_()), distribution_(1, 10) {} in RandomShapePartitionIteratorTest() 156 int64 Rand() { return distribution_(generator_); } in Rand() 159 std::mt19937 generator_; member in xla::cpu::__anon89ccd20e0111::RandomShapePartitionIteratorTest
|
/external/protobuf/src/google/protobuf/compiler/csharp/ |
D | csharp_bootstrap_unittest.cc | 115 ASSERT_TRUE(generator_.Generate(proto_file, parameter_, in Run() 124 Generator generator_; member in google::protobuf::compiler::csharp::__anon00d6ef660111::GenerateAndTest
|
/external/tensorflow/tensorflow/core/lib/random/ |
D | random_distributions.cc | 24 generator_->Skip(num_skips); in SkipFromGenerator()
|
D | random_distributions.h | 317 : generator_(gen), used_result_index_(Generator::kResultElementCount) {} in SingleSampleAdapter() 322 unused_results_ = (*generator_)(); in operator() 344 unused_results_ = (*generator_)(); in Skip() 356 (*generator_)(); in SkipFromGenerator() 360 Generator* generator_; variable
|
/external/libchrome/mojo/public/tools/bindings/generators/js_templates/ |
D | union_definition.tmpl | 44 {{union.name}}.generate = function(generator_) { 51 …generator: function() { return {{generate_or_mutate('generator_', 'generate', field.kind)|indent(6… 56 var result = generator_.generateUnionField(generators);
|