Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
460
bool OpTest::RandomBool() {
461
std::bernoulli_distribution d(0.5);
462
return d(generator());
463
}
464
465
Tensor OpTest::RandomTensor(DataType dtype, bool needs_unique_values,
466
absl::Span<const int64> shape) {
Callers
nothing calls this directly
Calls
1
d
Class · 0.85
Tested by
no test coverage detected