Home
last modified time | relevance | path

Searched refs:seed_ (Results 1 – 25 of 27) sorted by relevance

12

/external/tensorflow/tensorflow/core/kernels/data/
Dshuffle_dataset_op.cc75 seed_(seed), in Iterator()
190 parent_generator_ = random::PhiloxRandom(seed_, seed2_); in ResetRngs()
201 TF_RETURN_IF_ERROR(writer->WriteScalar(this->full_name("seed"), seed_)); in SaveInternal()
250 TF_RETURN_IF_ERROR(reader->ReadScalar(this->full_name("seed"), &seed_)); in RestoreInternal()
305 int64 seed_ GUARDED_BY(mu_);
393 seed_(seed), in ReshufflingDataset()
397 return strings::StrCat("ShuffleDatasetOp(", buffer_size_, ", ", seed_, in DebugString()
404 Iterator::Params{this, strings::StrCat(prefix, "::Shuffle")}, seed_, in MakeIteratorInternal()
412 : seed_(seed), in RandomSeedGenerator()
442 parent_generator_ = random::PhiloxRandom(seed_, seed2_); in Reset()
[all …]
/external/epid-sdk/epid/common-testhelper/
Dprng-testhelper.h49 Prng() : seed_(1) { set_seed(seed_); } in Prng()
52 unsigned int get_seed() const { return seed_; } in get_seed()
55 seed_ = val; in set_seed()
56 generator_.seed(seed_); in set_seed()
85 unsigned int seed_;
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Drandom_dataset_op.cc55 : DatasetBase(DatasetContext(ctx)), seed_(seed), seed2_(seed2) {} in Dataset()
75 return strings::StrCat("RandomDatasetOp(", seed_, ", ", seed2_, in DebugString()
87 TF_RETURN_IF_ERROR(b->AddScalar(seed_, &seed)); in AsGraphDefInternal()
98 parent_generator_(dataset()->seed_, dataset()->seed2_), in Iterator()
131 random::PhiloxRandom(dataset()->seed_, dataset()->seed2_); in RestoreInternal()
152 const int64 seed_; member in tensorflow::data::__anonc28f42b70111::RandomDatasetOp::Dataset
/external/webrtc/webrtc/modules/audio_coding/neteq/
Drandom_vector.cc41 seed_ = 777; in Reset()
47 seed_ += seed_increment_; in Generate()
48 size_t position = seed_ & (kRandomTableSize - 1); in Generate()
Drandom_vector.h28 : seed_(777), in RandomVector()
43 uint32_t seed_;
/external/perfetto/src/tracing/core/
Dtest_config.cc46 (seed_ == other.seed_) && (message_size_ == other.message_size_) && in operator ==()
63 static_assert(sizeof(seed_) == sizeof(proto.seed()), "size mismatch"); in FromProto()
64 seed_ = static_cast<decltype(seed_)>(proto.seed()); in FromProto()
95 static_assert(sizeof(seed_) == sizeof(proto->seed()), "size mismatch"); in ToProto()
96 proto->set_seed(static_cast<decltype(proto->seed())>(seed_)); in ToProto()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_module_config.h77 void set_seed(uint64 seed) { seed_ = seed; } in set_seed()
78 uint64 seed() const { return seed_; } in seed()
125 uint64 seed_ = 0; variable
Dhlo_evaluator.h337 uint64 seed_ = 0; variable
Dhlo_evaluator.cc265 seed_ = computation.parent()->config().seed(); in Evaluate()
269 seed_ = global_seed.fetch_add(1); in Evaluate()
271 engine_.seed(seed_); in Evaluate()
/external/tensorflow/tensorflow/core/kernels/
Dfractional_avg_pool_op.cc51 OP_REQUIRES_OK(context, context->GetAttr("seed", &seed_)); in FractionalAvgPoolOp()
55 if ((seed_ == 0) && (seed2_ == 0)) { in FractionalAvgPoolOp()
56 seed_ = random::New64(); in FractionalAvgPoolOp()
61 context, (seed_ == 0) && (seed2_ == 0), in FractionalAvgPoolOp()
95 generator.Init(seed_, seed2_); in Compute()
185 int64 seed_; member in tensorflow::FractionalAvgPoolOp
Dfractional_max_pool_op.cc54 OP_REQUIRES_OK(context, context->GetAttr("seed", &seed_)); in FractionalMaxPoolOp()
58 if ((seed_ == 0) && (seed2_ == 0)) { in FractionalMaxPoolOp()
59 seed_ = random::New64(); in FractionalMaxPoolOp()
64 context, (seed_ == 0) && (seed2_ == 0), in FractionalMaxPoolOp()
100 generator.Init(seed_, seed2_); in Compute()
186 int64 seed_; member in tensorflow::FractionalMaxPoolOp
Drandom_shuffle_queue_op.cc488 OP_REQUIRES_OK(context, context->GetAttr("seed", &seed_)); in RandomShuffleQueueOp()
498 capacity_, min_after_dequeue_, seed_, seed2_, component_types_, in CreateResource()
504 int64 seed_; member in tensorflow::RandomShuffleQueueOp
Dcudnn_rnn_ops.cc906 OP_REQUIRES_OK(context, context->GetAttr("seed", &seed_)); in CudnnRNNKernelCommon()
931 uint64 seed() { return (static_cast<uint64>(seed_) << 32) | seed2_; } in seed()
1023 int seed_; member in tensorflow::CudnnRNNKernelCommon
/external/webrtc/webrtc/base/
Dhelpers.cc148 TestRandomGenerator() : seed_(7) { in TestRandomGenerator()
162 return ((seed_ = seed_ * 214013L + 2531011L) >> 16) & 0x7fff; in GetRandom()
164 int seed_; member in rtc::TestRandomGenerator
/external/libvpx/libvpx/test/
Dvideo_source.h209 : rnd_(seed), seed_(seed) {} in rnd_()
215 rnd_.Reset(seed_); in Begin()
232 int seed_; variable
/external/libaom/libaom/test/
Dvideo_source.h211 : rnd_(seed), seed_(seed) {} in rnd_()
217 rnd_.Reset(seed_); in Begin()
233 int seed_; variable
/external/perfetto/include/perfetto/tracing/core/
Dtest_config.h154 uint32_t seed() const { return seed_; } in seed()
155 void set_seed(uint32_t value) { seed_ = value; } in set_seed()
171 uint32_t seed_ = {}; variable
/external/webrtc/webrtc/modules/audio_processing/transient/
Dtransient_suppressor.cc62 seed_(182), in TransientSuppressor()
160 seed_ = 182; in Initialize()
377 const float phase = 2 * ts::kPi * WebRtcSpl_RandU(&seed_) / in HardRestoration()
Dtransient_suppressor.h113 uint32_t seed_; variable
/external/vixl/src/aarch64/
Dsimulator-aarch64.h559 SimExclusiveLocalMonitor() : kSkipClearProbability(8), seed_(0x87654321) { in SimExclusiveLocalMonitor()
571 if ((seed_ % kSkipClearProbability) != 0) { in MaybeClear()
576 seed_ = (seed_ * 48271) % 2147483647; in MaybeClear()
598 uint32_t seed_; variable
607 SimExclusiveGlobalMonitor() : kPassProbability(8), seed_(0x87654321) {} in SimExclusiveGlobalMonitor()
612 bool pass = (seed_ % kPassProbability) != 0; in IsExclusive()
614 seed_ = (seed_ * 48271) % 2147483647; in IsExclusive()
620 uint32_t seed_; variable
/external/tensorflow/tensorflow/compiler/xla/tests/
Dreduce_test.cc102 input_data[i] = rand_r(&seed_) % 3; in RunR1ToR0Test()
103 if (rand_r(&seed_) % 2 == 0) { in RunR1ToR0Test()
354 uint32 seed_ = 0xdeadbeef; member in xla::__anon10c8b2690111::ReduceTest
/external/protobuf/src/google/protobuf/
Dmap.h717 seed_(Seed()), in InnerMap()
1269 return (h * (seed_ | 1)) & (num_buckets_ - 1); in BucketNumber()
1271 return (h + seed_) & (num_buckets_ - 1); in BucketNumber()
1341 size_type seed_; variable
/external/libvpx/libvpx/third_party/libwebm/mkvmuxer/
Dmkvmuxer.cc3096 seed_ = static_cast<unsigned int>(curr_time); in Segment()
3098 srand(seed_); in Segment()
3367 Track* const track = new (std::nothrow) Track(&seed_); // NOLINT in AddTrack()
3380 Chapter* Segment::AddChapter() { return chapters_.AddChapter(&seed_); } in AddChapter()
3385 VideoTrack* const track = new (std::nothrow) VideoTrack(&seed_); // NOLINT in AddVideoTrack()
3430 AudioTrack* const track = new (std::nothrow) AudioTrack(&seed_); // NOLINT in AddAudioTrack()
Dmkvmuxer.h1777 unsigned int seed_; variable
/external/libaom/libaom/third_party/libwebm/mkvmuxer/
Dmkvmuxer.cc3096 seed_ = static_cast<unsigned int>(curr_time); in Segment()
3098 srand(seed_); in Segment()
3367 Track* const track = new (std::nothrow) Track(&seed_); // NOLINT in AddTrack()
3380 Chapter* Segment::AddChapter() { return chapters_.AddChapter(&seed_); } in AddChapter()
3385 VideoTrack* const track = new (std::nothrow) VideoTrack(&seed_); // NOLINT in AddVideoTrack()
3430 AudioTrack* const track = new (std::nothrow) AudioTrack(&seed_); // NOLINT in AddAudioTrack()

12