Enum burn_tensor::Distribution
source · [−]pub enum Distribution<P> {
Standard,
Bernoulli(f64),
Uniform(P, P),
}
Variants
Standard
Bernoulli(f64)
Uniform(P, P)
Implementations
sourceimpl<P> Distribution<P>where
Standard: Distribution<P>,
P: SampleUniform,
impl<P> Distribution<P>where
Standard: Distribution<P>,
P: SampleUniform,
pub fn sampler(self, rng: &mut StdRng) -> DistributionSampler<'_, P>
sourceimpl<P> Distribution<P>where
P: Element,
impl<P> Distribution<P>where
P: Element,
pub fn convert<E: Element>(self) -> Distribution<E>
Trait Implementations
sourceimpl<P: Clone> Clone for Distribution<P>
impl<P: Clone> Clone for Distribution<P>
sourcefn clone(&self) -> Distribution<P>
fn clone(&self) -> Distribution<P>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<P: Copy> Copy for Distribution<P>
Auto Trait Implementations
impl<P> RefUnwindSafe for Distribution<P>where
P: RefUnwindSafe,
impl<P> Send for Distribution<P>where
P: Send,
impl<P> Sync for Distribution<P>where
P: Sync,
impl<P> Unpin for Distribution<P>where
P: Unpin,
impl<P> UnwindSafe for Distribution<P>where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more