MCPcopy Create free account
hub / github.com/apache/singa / Bernoulli

Function Bernoulli

src/core/tensor/tensor_math.h:355–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353// If DType is not float, then convert the threshold to DType
354template <typename DType, typename Lang>
355void Bernoulli(const float p, Tensor *out, Context *ctx) {
356 LOG_FATAL("Bernoulli", DType, Lang);
357}
358// The random generator should be extracted from ctx.
359// If DType is not float, then convert the mean and std to DType
360template <typename DType, typename Lang>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected