Home
last modified time | relevance | path

Searched refs:RangeSampler (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Drange_sampler.h37 class RangeSampler {
39 explicit RangeSampler(int64 range) : range_(range) { CHECK_GT(range_, 0); } in RangeSampler() function
40 virtual ~RangeSampler();
110 class AllSampler : public RangeSampler {
135 class UniformSampler : public RangeSampler {
149 class LogUniformSampler : public RangeSampler {
164 class ThreadUnsafeUnigramSampler : public RangeSampler {
181 class UnigramSampler : public RangeSampler {
211 class FixedUnigramSampler : public RangeSampler {
Drange_sampler.cc35 RangeSampler::~RangeSampler() {} in ~RangeSampler()
37 void RangeSampler::SampleBatch(random::SimplePhilox* rnd, bool unique, in SampleBatch()
44 void RangeSampler::SampleBatchGetExpectedCount( in SampleBatchGetExpectedCount()
77 void RangeSampler::SampleBatchGetExpectedCountAvoid( in SampleBatchGetExpectedCountAvoid()
122 AllSampler::AllSampler(int64 range) : RangeSampler(range) {} in AllSampler()
148 : RangeSampler(range), inv_range_(1.0 / range) {} in UniformSampler()
157 : RangeSampler(range), log_range_(log1p(range)) {} in LogUniformSampler()
178 : RangeSampler(range), picker_(range) { in ThreadUnsafeUnigramSampler()
201 : RangeSampler(range), unsafe_sampler_(range) { in UnigramSampler()
237 : RangeSampler(range), in FixedUnigramSampler()
[all …]
Dcandidate_sampler_ops.cc102 void set_sampler(RangeSampler* sampler) { sampler_.reset(sampler); } in set_sampler()
108 std::unique_ptr<RangeSampler> sampler_;
Drange_sampler_test.cc78 std::unique_ptr<RangeSampler> sampler_;