MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Sample

Method Sample

tensorflow/core/kernels/range_sampler.cc:151–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 : RangeSampler(range), inv_range_(1.0 / range) {}
150
151int64 UniformSampler::Sample(random::SimplePhilox* rnd) const {
152 return rnd->Uniform64(range_);
153}
154
155float UniformSampler::Probability(int64 value) const { return inv_range_; }
156

Callers 4

BootstrapGiniFunction · 0.45
addMethod · 0.45
ComputeMethod · 0.45

Calls 4

Uniform64Method · 0.80
RandDoubleMethod · 0.80
PickMethod · 0.80
expClass · 0.70

Tested by

no test coverage detected