[][src]Function autograd::ops::bernoulli_rng

pub fn bernoulli_rng<T: Float, AL: ArrayLike<T>, R: Rng + 'static>(
    arr_rng: ArrRng<T, R>,
    shape: &AL,
    p: f64
) -> Tensor<T>

Outputs values sampled from the bernoulli distribution.

See https://github.com/raskr/rust-autograd/issues/1.