Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/lib/random/
Dweighted_picker.h61 int32 get_weight(int index) const;
120 inline int32 WeightedPicker::get_weight(int index) const { in get_weight() function
Dweighted_picker.cc138 const int32 delta = weight - get_weight(index); in set_weight()
/external/tensorflow/tensorflow/core/kernels/
Drange_sampler.cc190 return static_cast<float>(picker_.get_weight(value)) / picker_.total_weight(); in Probability()
198 picker_.set_weight(value, picker_.get_weight(value) + 1); in Update()
/external/rust/crates/rand/src/seq/
Dmod.rs1065 fn get_weight<T>(item: &(u32, T)) -> u32 { in test_weighted() function
1074 let item = items.choose_weighted(&mut r, get_weight).unwrap(); in test_weighted()
1085 items.choose_weighted_mut(&mut r, get_weight).unwrap().1 += 1; in test_weighted()