autograd::ops
pub fn bernoulli<T: Float, AL: ArrayLike<T>>(shape: &AL, p: f64) -> Tensor<T>
Outputs values sampled from the bernoulli distribution.