pub fn bernoulli<'graph, A, F: Float>(
    shape: &A,
    p: f64,
    graph: &'graph impl AsGraph<F>,
) -> Tensor<'graph, F>
where
    A: AsTensor<'graph, F>,
{
    bernoulli_rng(Default::default(), shape, p, graph)
}
/// Outputs values sampled from the bernoulli distribution.
Outputs values sampled from the bernoulli distribution.
Outputs values sampled from the bernoulli distribution .
pub fn bernoulli<'graph, A, F: Float>(
    shape: &A,
    p: f64,
    graph: &'graph impl AsGraph<F>,
) -> Tensor<'graph, F>
where
    A: AsTensor<'graph, F>,
{
    bernoulli_rng(Default::default(), shape, p, graph)
}
pub fn bernoulli < ' graph , A , F : Float > ( shape : & A , p : f64 , graph : & ' graph impl AsGraph < F > , ) -> Tensor < ' graph , F > where A : AsTensor < ' graph , F > , { bernoulli_rng ( Default :: default ( ) , shape , p , graph ) }
Outputs values sampled from the bernoulli distribution.
Outputs values sampled from the bernoulli distribution .
shape
&A
p
f64
graph
&'graph impl AsGraph<F>
shape
&A
p
f64
graph
&'graph impl AsGraph<F>