//clika-runtime/io.clika.runtime/Ops/bernoulliInPlace
bernoulliInPlace
[common]
fun bernoulliInPlace(self: Tensor, device: Placement? = null): Tensor
bernoulliInPlace(self: Tensor, device: Placement? = null): the bernoulli_ operator. In-place: overwrite self, whose values are the per-element success probabilities, with the 0/1 draws (self[i] ~ Bernoulli(self[i])). Writes through self and returns it, so calls chain.