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

Method Choose

tensorflow/compiler/tests/randomized_tests.cc:425–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423
424template <typename T>
425T OpTest::Choose(absl::Span<const T> candidates) {
426 std::uniform_int_distribution<size_t> d(0, candidates.size() - 1);
427 return candidates[d(generator())];
428}
429
430int64 OpTest::RandomDim(int64 min, int64 max) {
431 std::uniform_int_distribution<int64> size_distribution(min, max - 1);

Callers

nothing calls this directly

Calls 2

dClass · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected