Skip to main content

ClikaRT::ops::bernoulli_

function

bernoulli_()​

void bernoulli_(Tensor& self, StreamOrDevice device = {})

In-place: overwrite self, whose values are the per-element success probabilities, with the 0/1 draws (self[i] ~ Bernoulli(self[i])).

Declared in ClikaRT/compute/ops.h, line 4023