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

Function TEST_F

tensorflow/core/kernels/range_sampler_test.cc:81–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79};
80
81TEST_F(RangeSamplerTest, UniformProbabilities) {
82 sampler_.reset(new UniformSampler(10));
83 for (int i = 0; i < 10; i++) {
84 CHECK_EQ(sampler_->Probability(i), sampler_->Probability(0));
85 }
86}
87
88TEST_F(RangeSamplerTest, UniformChecksum) {
89 sampler_.reset(new UniformSampler(10));

Callers

nothing calls this directly

Calls 12

DefaultFunction · 0.85
TmpDirFunction · 0.85
WriteStringToFileFunction · 0.85
powClass · 0.70
JoinPathFunction · 0.50
resetMethod · 0.45
ProbabilityMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected