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

Method RandomBool

tensorflow/compiler/tests/randomized_tests.cc:460–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460bool OpTest::RandomBool() {
461 std::bernoulli_distribution d(0.5);
462 return d(generator());
463}
464
465Tensor OpTest::RandomTensor(DataType dtype, bool needs_unique_values,
466 absl::Span<const int64> shape) {

Callers

nothing calls this directly

Calls 1

dClass · 0.85

Tested by

no test coverage detected