Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ Probability
Method
Probability
tensorflow/core/kernels/range_sampler.cc:155–155 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
153
}
154
155
float UniformSampler::Probability(int64 value) const { return inv_range_; }
156
157
LogUniformSampler::LogUniformSampler(int64 range)
158
: RangeSampler(range), log_range_(log1p(range)) {}
Callers
3
CheckProbabilitiesSumToOne
Method · 0.45
CheckHistogram
Method · 0.45
TEST_F
Function · 0.45
Calls
5
total_weight
Method · 0.80
log
Class · 0.70
get_weight
Method · 0.45
size
Method · 0.45
at
Method · 0.45
Tested by
3
CheckProbabilitiesSumToOne
Method · 0.36
CheckHistogram
Method · 0.36
TEST_F
Function · 0.36