Home
last modified time | relevance | path

Searched refs:generator_ (Results 1 – 25 of 36) sorted by relevance

12

/external/webrtc/modules/rtp_rtcp/source/
Dsource_tracker_unittest.cc103 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/
Dguarded_philox_random.cc42 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()
Dguarded_philox_random.h74 random::PhiloxRandom generator_ TF_GUARDED_BY(mu_);
/external/tensorflow/tensorflow/core/kernels/data/
Drandom_seed_ops.cc51 *seed1 = generator_(); in GenerateSeeds()
53 *seed2 = generator_(); in GenerateSeeds()
60 generator_ = in Reset()
62 generator_.Skip(num_random_samples_); in Reset()
Drandom_seed_ops.h113 generator_(&parent_generator_) {} in RandomSeedGenerator()
125 random::SingleSampleAdapter<random::PhiloxRandom> generator_
/external/tensorflow/tensorflow/lite/kernels/internal/
Dlog_quantized_test.cc52 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/
Dtest_utils.h42 : 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/
Drandom_op.cc68 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
Drandom_shuffle_op.cc66 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
Drandom_poisson_op.cc289 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
Dmultinomial_op.cc225 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
Dcandidate_sampler_ops.cc39 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/
Drandom_dataset_op.cc92 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_
Dsampling_dataset_op.cc106 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/
Dfake_desktop_capturer.cc40 generator_ = generator; in set_frame_generator()
49 if (generator_) { in CaptureFrame()
56 generator_->GetNextFrame(shared_memory_factory_.get())); in CaptureFrame()
Dfake_desktop_capturer.h69 DesktopFrameGenerator* generator_ = nullptr; variable
/external/tensorflow/tensorflow/core/kernels/image/
Drandom_crop_op.cc31 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/
Drtc_certificate_generator_unittest.cc32 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/
Dencode_neteq_input.cc24 : generator_(std::move(generator)), in EncodeNetEqInput()
78 info = encoder_->Encode(rtp_timestamp_, generator_->Generate(num_samples), in CreatePacket()
Dencode_neteq_input.h57 std::unique_ptr<Generator> generator_; variable
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dshape_partition_test.cc152 : 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/
Dcsharp_bootstrap_unittest.cc115 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/
Drandom_distributions.cc24 generator_->Skip(num_skips); in SkipFromGenerator()
Drandom_distributions.h317 : 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/
Dunion_definition.tmpl44 {{union.name}}.generate = function(generator_) {
51 …generator: function() { return {{generate_or_mutate('generator_', 'generate', field.kind)|indent(6…
56 var result = generator_.generateUnionField(generators);

12