Home
last modified time | relevance | path

Searched refs:total_weight_ (Results 1 – 5 of 5) sorted by relevance

/external/libprotobuf-mutator/src/
Dweighted_reservoir_sampler.h42 bool IsEmpty() const { return total_weight_ == 0; } in IsEmpty()
47 total_weight_ += weight; in Pick()
48 return weight == total_weight_ || std::uniform_int_distribution<uint64_t>( in Pick()
49 1, total_weight_)(*random_) <= weight; in Pick()
53 uint64_t total_weight_ = 0; variable
/external/grpc-grpc/test/cpp/interop/
Dstress_interop_client.cc40 total_weight_ = 0; in WeightedRandomTestSelector()
42 total_weight_ += it->second; in WeightedRandomTestSelector()
53 random = rand() % total_weight_; in GetNextTest()
Dstress_interop_client.h88 int total_weight_; variable
/external/tensorflow/tensorflow/core/kernels/
Drange_sampler.cc241 total_weight_(0.0), in FixedUnigramSampler()
257 total_weight_(0.0), in FixedUnigramSampler()
271 return weights_.at(value) / total_weight_; in Probability()
305 total_weight_ += w; in LoadFromFile()
320 total_weight_ += w; in LoadFromUnigrams()
Drange_sampler.h234 float total_weight_; variable