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

Function BM_Pick

tensorflow/core/lib/random/weighted_picker_test.cc:256–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254BENCHMARK(BM_CreateAndSetWeights)->Range(1, 1024);
255
256static void BM_Pick(int iters, int arg) {
257 PhiloxRandom philox(301, 17);
258 SimplePhilox rnd(&philox);
259 WeightedPicker p(arg);
260 int result = 0;
261 while (--iters > 0) {
262 result += p.Pick(&rnd);
263 }
264 VLOG(4) << result; // Dummy use
265}
266BENCHMARK(BM_Pick)->Range(1, 1024);
267
268} // namespace random

Callers

nothing calls this directly

Calls 1

PickMethod · 0.80

Tested by

no test coverage detected